Firstly, I am a novice as my name suggests so forgive me if I don't phrase what I am asking correctly!
I am an owner of a website which has products dynamically inserted into the database each night.
From the datafeeds pulled in, we make rules to EXCLUDE certain products within the feeds.
I am trying to add variants to these rules, but whenever I try to add in the variants using the 'or' operator that I looked up, nothing works at all, and in fact, nothing pulls through to the database.
Currently this is what is live and works:
if ($gender == "Female" AND $display_price != null AND $kids != "Children")
('Female' products pulled in, but ignore/delete anything marked as 'Female" and 'Children')
I want to add variants in so that we can include products that don't fit the above criteria because a different label is used and have tried these with no success:
if ($gender == "Female" OR $gender == "Women") AND $display_price != null AND $kids != "Children" OR $kids == "Kids")
also tried:
if ($gender == "Female" || $gender == "Women") && $display_price != null && $kids != "Children" || $kids == "Kids")
So basically I want to pull in any 'Female' or 'Women' clothing products but ignore anything which is kid's clothes.
Any suggestions?
Thanks in advance!
EDIT
Sorry guys, I should clarify I am not the developer obviously, he is out-of-action at the moment working on another big project.
Apologies if I mis-titled the topic.
But I am competent enough to make small cut and paste changes like this, I think!