Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › meta data search
- This topic has 11 replies, 2 voices, and was last updated 8 years, 11 months ago by
Ernest Marcinko.
-
AuthorPosts
-
June 19, 2017 at 9:22 am #13648
amany
Participanthi
thank you very much for this AMAZING plugin ?
I have a website with two option (I have this/I need this) when a user upload PRODUCT (choose one of two radio button) so all i want to do is make the user able to make a search box dedicated to only these option,
these option are mad by userpro plugin they told me it is a meta data but I don’t know how can I put these option in your search setting while I don’t know what the exactly class they are use it.
I already asked them but they didn’t answer me . so could please help me with that ?thank you and I’m appreciated ..
June 19, 2017 at 3:58 pm #13670Ernest Marcinko
KeymasterHi!
Thank you very much for your kind words, I really appreciate that!
Did they tell which fields store this information by any chance? I believe this could be possible with a custom filter code.
June 20, 2017 at 12:22 pm #13708amany
Participanthi
they put these two options as action and they said “the meta for these two options was already added in the WooCommerce plugin ” they mean WC Fields Factory plugin .
these option were created when a user upload product choose one of them, but I don’t know where info will be storeJune 21, 2017 at 10:00 am #13733amany
ParticipantJune 21, 2017 at 11:24 am #13736amany
ParticipantYou cannot access this content.
June 21, 2017 at 12:56 pm #13739Ernest Marcinko
KeymasterHi!
I think you have the filter correctly, the wccaf_type_of_product contains either ‘I have this’ or ‘I need this’ as a string.
If the override is not working, then it’s most likely because the theme search is hard coded and not possible to override. I will log in in a second via FTP to see if I can replace it manually.
June 21, 2017 at 1:06 pm #13741Ernest Marcinko
KeymasterHi,
I have found that the search forms were printed by the block-header-menu.php file in the child theme directory.
I have disabled lines 35-59 (with HTML comments), and placed the search PHP shortcode there instead:
[code]<php echo do_shortcode(‘[wd_asp id=1]’); ?>[/code]
I’ve also added this custom CSS rule to make the search float to the right as the original ones:
[html].asp_main_container {
float: right !important;
}[/html]June 21, 2017 at 1:27 pm #13744amany
ParticipantTHANK YOU SO MUCH
I create other search and I want to put it with the same search tap so I can have two search box
how can I do that?thanks
June 21, 2017 at 1:29 pm #13745amany
ParticipantI want to mention I added two search code in theme header
June 21, 2017 at 4:44 pm #13751Ernest Marcinko
KeymasterHi,
I’ve placed both shortcodes into the block-header-menu.php file in the child theme directory for you, you can edit them on line 33 and 34.
June 22, 2017 at 9:22 am #13758amany
ParticipantTHANK YOU VERY MUCH
I appreciate your help
June 22, 2017 at 12:01 pm #13760Ernest Marcinko
KeymasterYou cannot access this content.
-
AuthorPosts
- You must be logged in to reply to this topic.