Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
What would be the best approach to making the main product image change base on the attribute choosen.
For example if the customer chooses colour blue for a t-shirt the main image would be swap to the image which I have marked as the blue t-shirt
You can give this extension a try.
Among other things, it allows you to change the image for configurable products depending on the selected attributes.
You can configure which attributes change the image and which do not.
Read the documentation to get a better view.
Required, but never shown