Forums Forums Search & Filter Pro How to make woocommerce & ACF fields work together

Tagged: 

Viewing 10 posts - 1 through 10 (of 16 total)
  • Anonymous
    #182147

    Hello,

    I’m trying to setup a search an filter to work with Woocommerce products. I’ve made some dummy woocommerce products and assigned some custom fields (ACF fields) to these products. Now i’ve set up a search and filter with “display results method” as “woocommerce shop”, and added the shortcode to a widget. Now the filter is showing up, but at the ACF fields filter at every value, it says “0”. But actually some of the products have one of these values filled, but nothing happens. Can you guys help me out fixing this problem?

    Thanks and please let me know.

    Anonymous
    #182148
    This reply has been marked as private.
    Trevor
    #182150
    This reply has been marked as private.
    Anonymous
    #182152
    This reply has been marked as private.
    Anonymous
    #182154
    This reply has been marked as private.
    Trevor
    #182156
    This reply has been marked as private.
    Anonymous
    #182158
    This reply has been marked as private.
    Trevor
    #182160

    With ACF, note that it makes 3 meta keys per field, like this:

    #1 _job_date
    #2 field_5a16902ae5c07
    #3 job_date

    You need to use key #3, without the underscore at the start of the key name.

    Anonymous
    #182168
    This reply has been marked as private.
    Trevor
    #182170
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 16 total)