I have the debut theme and all I am trying to do is make it so that when a customer clicks the image the variant automatically changes to the correct item. I have three other stores that had the same issue and all of them were fixed by Shopify support. However, this time around I have hit a complete brick wall. I have been told that its no longer supported I now need to pay if I want it fixed.
I have tried to paste in the code that they gave me but it still will not work with my theme. If I launch my site how it currently is then customers will just be ordering the wrong items based on the image they clicked.
This is actually the link that Shopify support gave. I have copied this at the bottom of my theme.js and hit save but it does not fix the issue on the website unfortunately.
In the left-hand sidebar, locate and click on the “product-template.liquid” file under the “Sections” folder.
Look for the code that renders the product images. It might be within a <div> element with a class like product-single__media-wrapper or product-single__photo.
Find the code that creates the clickable image, which is likely an <a> tag or a <div> container. Add the following code inside that element: