Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

JSON Product Variations

Home / Forums / Virtue Theme / JSON Product Variations

This topic is: Not Resolved
[Not Resolved]
Posted in: Virtue Theme
November 10, 2017 at 3:56 am

Hello,

I want to include an hint for just one out of four products which are in a variable product. I use a child theme with virtue premium.

First I tried to include an PHP if-Condition in the variable.php but that didn’t work. I see that the product variation data are include in a JSON-Script.

Is it possible to query the sku from the JSON-Script and make if-condition (e.g. with JS) to show an image when the product variant is selected?

  • The forum ‘Virtue Theme’ is closed to new topics and replies.