Here is a screenshot of how the variations displayed when I selected first attribute (Size), it doesn't show the matching colors or doesn't cross out unmatching colors like the screenshot below (This is a premium plugin called Improved Variable Product Attributes Plugin).
Is there any way to cross out unmatching attributes in Variation Swatches Plugin For Woocommerce by adding simple Javascript?
After some trial and error tries, I wrote a little bit of code. Anyone else has better contributions appreciated.
After some trial and error, I wrote this below code and added to the click event in
wp-content\plugins\variation-swatches-for-woocommerce\assets\js\frondend.js
file.Add the below code at the end of onclick event
Eg :
Also add this css code of cross out in
wp-content\plugins\variation-swatches-for-woocommerce\assets\css\frondend.css
Results after adding this code snippet