• Resolved elavd

    (@elavd)


    I have created a (Skroutz) feed and I want to filter and include only the products that have set a specific custom field (ACF) with the value = 1.
    All the other products, that

    • either don’t have this field set to any value
    • or have it set to 0

    should be excluded.

    Although I have created a filter with Include Only logic, it still includes some other products that don’t have this custom field set to 1.
    https://ibb.co/9HcDP14v


    What might be wrong?

Viewing 9 replies - 1 through 9 (of 9 total)
  • What is your default value for that ACF field?

    If it is defaults to 1, do a filter based on “0”. This is how ACF works — it only stores values in database when they are changed from default. And Product Feed Pro reads directly from database. It simply does not see a value of “1” as it only exists in ACF mind and will be returned if one calls ACF get_field() function

    Rudolf

    Thread Starter elavd

    (@elavd)

    I have not set a default value (although I probably should). But I have set this ACF not to be visible in certain catagories, so that the admin should not have to set it for these kind of products.

    So, this field is set to some products, and some others not at all.

    I need to include only the products that the field exists AND has been set to value=1.

    All the other products with value 0 or with this field absent, should be excluded from the feed.

    If “1” is your default, then do a condition “where field is not equal 0”

    Rudolf

    Plugin Support Jeff Alvarez

    (@superlemon1998)

    Hi @elavd ,

    We currently do not support ACF or SCF. Having said that there’s an ongoing bug where the include only/exclude only rule seems to be doing the opposite.

    Try changing it and see if that works.

    Thread Starter elavd

    (@elavd)

    So you mean that it used to support ACF but now it’s not?
    Is this temporary?

    Plugin Support Jeff Alvarez

    (@superlemon1998)

    Hi @elavd ,

    We’ve never officially supported ACF/SCF, so I can’t say for certain why it was working previously. Having said that on the newer versions, we refactored our code.

    You could try downgrading the product feed versions: https://wordpress.org/plugins/woo-product-feed-pro/advanced/

    Thread Starter elavd

    (@elavd)

    Thank you for your answer.
    Is this plugin compatible with any other types of Custom Fields, that I could maybe use and replace this ACF?

    Plugin Support Jeff Alvarez

    (@superlemon1998)

    Hi @elavd ,

    Afraid not, I don’t recall any other plugin or have seen other users mention any custom field plugins. There are feature request for ACF so I’ll add a +1 in favor of it being developed

    Thread Starter elavd

    (@elavd)

    Great thank you!

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Feed doesn’t include the correct products’ is closed to new replies.