• Hi there. First of all i would like to thank you for this great plugin! Saved me form a lot of code. My only issue is that i try to use it with woocommerce categories. I have search and tried other solutions you gave but still nothing. What i want, is to show a section when the product is in one of the categories in the array. I even tried the full urls but still nothing. What i get in debug mode is:

    Element: woocommerce-product-content-98850a1 (widget)
    DynamicTag-Tag: woocommerce-product-terms-tag
    DynamicTag-Key:
    DynamicTag-Value:
    Categories: Accessories
    DynamicTag-Value-Raw: Categories: Accessories
    Check-Value: <span>Accessories</span>,<span>Cushions & Pillow covers</span>
    Check-Value2:
    Condition-Type: default
    Condition: Show if in_array
    Condition met: no

    i have used spans, without spans, the whole url, still nothing…

    Any ideas what i am doing wrong here??
    Thank in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I have the same problem! Any solution here?

    • This reply was modified 4 years, 1 month ago by lknoke.
    Plugin Author crazypsycho

    (@crazypsycho)

    Hello,

    this is because the Product-Terms-Tag puts a a-Tag around the category and adds the string “Category: ” before by default.
    You could use “Post-Terms” instead of Product-Terms and disable linking of categories.
    Than the output should be “<span>Accessories</span>”.

    • This reply was modified 3 years, 12 months ago by crazypsycho.
    • This reply was modified 3 years, 12 months ago by crazypsycho.
    • This reply was modified 3 years, 12 months ago by crazypsycho.
    • This reply was modified 3 years, 12 months ago by crazypsycho.
    • This reply was modified 3 years, 12 months ago by crazypsycho.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Woocommerce categories in array’ is closed to new replies.