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