This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

meta data search

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #13648
    amanyamany
    Participant

    hi

    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 ..

    #13670
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    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.

    #13708
    amanyamany
    Participant

    hi

    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 store

    #13733
    amanyamany
    Participant

    hi

    I just find snippet code to access custom fields
    [code]echo get_post_meta(get_post()->ID, "wccaf_type_of_product", true );[/code]

    how can I use this in search?

    • This reply was modified 8 years, 11 months ago by amanyamany.
    • This reply was modified 8 years, 11 months ago by amanyamany.
    #13736
    amanyamany
    Participant

    You cannot access this content.

    #13739
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    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.

    #13741
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    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(‘&#91;wd_asp id=1&#93;’); ?>[/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]

    #13744
    amanyamany
    Participant

    THANK 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

    #13745
    amanyamany
    Participant

    I want to mention I added two search code in theme header

    #13751
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    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.

    #13758
    amanyamany
    Participant

    THANK YOU VERY MUCH

    I appreciate your help

    #13760
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.