I created one attribute with type Visual Swatch
now i need to get image path of specific option value or product then how to get it ?
magento2
I created one attribute with type Visual Swatch
now i need to get image path of specific option value or product then how to get it ?
Best Answer
I had the same problem. Finaly got it working with below code:
Now $images contains an array with the id, label and image for each value.
Hope this helps someone.