After you've added the "has_term" at "WP Admin -> Toolset -> Settings -> Front-end Content -> Functions inside conditional evaluations", you can use the conditional shortcode like this:
[wpv-conditional if="( has_term('Red', 'pa_color', null) eq '1' )" ]
<p>This one is available in red!</p>
[/wpv-conditional]
Note: You'll replace "color" with actual attribute slug used on your website and keeping the "pa_" at the start.
This is also something I wanted to reproduce on my website. But instead of a specific color condition, I would like to have a condition that do "If any color is selected, show this section" - "If there's no color selected, don't show this section". Because for now, if there's no specific color selected in the attributes, I have a blank spot on my product page where we can see "Color : ". I would like the full colour section to not show if there's no color selected in the attributes. What should I modify in your actual code to make this work like this?
Thank you!
J-F
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.