Support » Plugin: Product Feed PRO for WooCommerce » Dynamically adding gender according to categories

  • Resolved Tom34

    (@arcade-games)


    1) I have two categories where I need to set the gender to female and the rest unisex.

    I saw this solution but this just works for one category since AND or OR are missing?
    https://wordpress.org/support/topic/how-to-set-age_group-based-on-certain-category/

    I added the custom field gender. Should I treat the Rules as if they are processed sequentially maybe?

    2) I’d like to “only include” white and black colored items. Can I somehow add multiple values to “is equal to”?

    3) Also what does the CS checkbox do? I didn’t find it in the help file

    thank you

    • This topic was modified 4 months, 1 week ago by  Tom34.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Tom34

    (@arcade-games)

    I tried to add the Gender female if category_link contains “women”. This doesn’t work though. I can very well filter by category but not assign a dynamic attribute:

    I couldn’t find the support email address on the website so I post the relevant part of the debug.log here.

    I tried both CS on and off and I tried to filter by category_path and category_link.

    ——-snip—(mappings)-
    [91] => Array
    (
    [rowCount] => 91
    [categoryId] => 91
    [criteria] => Women\’s Shirts
    [map_to_category] => 212 – Apparel & Accessories > Clothing > Shirts & Tops
    )

    ——–snip—-
    [rules] => Array
    (
    [1559680138417] => Array
    (
    [rowCount] => 1559680138417
    [attribute] => category_link
    [condition] => contains
    [criteria] => women
    [cs] => on
    [than] => include_only
    )

    )

    [rules2] => Array
    (
    [1559680475582] => Array
    (
    [rowCount] => 1559680475582
    [attribute] => category_link
    [condition] => contains
    [criteria] => women
    [cs] => on
    [than_attribute] => pa_gender
    [newvalue] => female
    )

    )

    Plugin Contributor AdTribes.io Support Team

    (@evavangelooven)

    Hi Tom,

    Thanks for using our plugin and reaching out to us.

    To start with the ‘category_link’ rule you created. We have tried to replicate the issue at hand but for us it is working just fine.

    We created this rule:
    https://www.dropbox.com/s/6wnrsd3dai2l9g7/cat-link-1.png?dl=0

    Saying that when the category link contains the word ‘pretend’ to give the ‘attribute color’ violet.

    We than added the ‘attribute color’ to the product feed (we mapped it to a custom label for testing purpose):
    https://www.dropbox.com/s/oh3hdo6xxv0ctzp/cat-link-2.png?dl=0

    And then manually refreshed the product feed. With this as a result:
    https://www.dropbox.com/s/ueejn74d2hfddbz/cat-link-3.png?dl=0

    So that seems to work fine for us? Maybe you forgot to add the pa_gender attribute to the field mapping?

    With regards to your other questions:
    – It is not possible to add multiple values to ‘is equal to’ (you could go for this solution though: https://adtribes.io/how-to-include-only-a-couple-of-products-to-your-product-feed/)
    – cs = case sensitive)

    Hope this helps?

    All the best,
    Eva

    All the best,
    Eva

    Plugin Contributor AdTribes.io Support Team

    (@evavangelooven)

    Hi,

    Assuming the issue at hand has been solved I am going to close this issue for now. Please feel free to reach out again whenever you need our support again.

    All the best,
    Eva

    suiluj

    (@suiluj)

    hello eva i have a similar problem:

    i would like to set a rule if a product is listed in a product category.
    it is not the primary category but a secondary.

    How do a set a rule that says: change the shipping to 4.99 EUR if the product is listed in a category named “Nur Premiumversand” or with the URL slug “premiumshippingonly”

    I tried all different kind of things like:

    [attribute] => category_link
    [condition] => contains
    [criteria] => premium
    [than_attribute] => shipping
    [newvalue] => 4.99 EUR

    But nothing happend. the shipping field (which i set in the field mapping) is still empty.

    And what does the CS option in the rules dialogue mean? I did not find any information about it.

    Regards
    Julius

    • This reply was modified 4 months ago by  suiluj.
    Plugin Contributor AdTribes.io Support Team

    (@evavangelooven)

    Hi Julius,

    Rules on shipping costs will only work when you are creating a feed that is not for Google Shopping or Facebook. Due to the complex Shipping XML node needed for Google and Facebook those rules won’t work.

    Best,
    Eva

    suiluj

    (@suiluj)

    hi Eva,

    okay thanks for the hint.
    now i have solved my problem with shipping labels.
    these label you can configure in merchant center shipping

    Plugin Contributor AdTribes.io Support Team

    (@evavangelooven)

    perfect!

    all the best,
    Eva

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.