meta data search

This topic contains 11 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 5 years ago.

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #13648
    amany
    amany
    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 Marcinko
    Ernest 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.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #13708
    amany
    amany
    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
    amany
    amany
    Participant

    hi

    I just find snippet code to access custom fields

    echo get_post_meta(get_post()->ID, "wccaf_type_of_product", true );

    how can I use this in search?

    • This reply was modified 5 years ago by amany amany.
    • This reply was modified 5 years ago by amany amany.
    #13736
    amany
    amany
    Participant
    You cannot access this content.
    #13739
    Ernest Marcinko
    Ernest 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.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #13741
    Ernest Marcinko
    Ernest 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:

    <php echo do_shortcode('&#91;wd_asp id=1&#93;'); ?>

    I’ve also added this custom CSS rule to make the search float to the right as the original ones:

    .asp_main_container {
       float: right !important;
    }
    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #13744
    amany
    amany
    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
    amany
    amany
    Participant

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

    #13751
    Ernest Marcinko
    Ernest 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.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #13758
    amany
    amany
    Participant

    THANK YOU VERY MUCH

    I appreciate your help

    #13760
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.