‘AND’ from ACF ‘location’ section processed as ‘OR’ ?
-
In ACF I have a number of custom fields that are shown based upon a number of product categories.
For example if I have in the ‘Locations’ section :
Show this field group if
[Post type][is equal to][Product] {AND}
[Post taxonomy][is equal to][-Basketball]
{OR}
[Post type][is equal to][Product] {AND}
[Post taxonomy][is equal to][-Soccer]If I go to ‘Add Product’ from the Dokan Dashboard, it shows all fields related to this ACF group twice. If I would add a 3th location it will show 3 times in the Dokan product add/edit (the regular woocommerce ‘admin’ product edit/add does process the locations correctly). Even when none of the listed product categories has been selected yet, the ACF fields are shown 2 times for the above locations.
Another reason why I suspect the ‘{AND}’ statements are processed as if they were an ‘{OR}’ is that when I add ‘Vendor’ as location condition, like this
[Post type][is equal to][Product] {AND}
[Post taxonomy][is equal to][-Basketball] {AND}
[User role][is equal to][Vendor]
{OR}
[Post type][is equal to][Product] {AND}
[Post taxonomy][is equal to][-Soccer]`
, now all of the sudden the ACF fields show up in the ‘Edit Account Details’ page when I go to ‘Edit Account’ from the Dokan dashboard.I am using the Pro version.
Thanks!
- The topic ‘‘AND’ from ACF ‘location’ section processed as ‘OR’ ?’ is closed to new replies.