Hi,
I’m using the Enterprise theme and following a tutorial (https://websensepro.com/blog/how-to-add-different-description-per-variant-shopify-tutorial/) to add variant-specific descriptions to my product page.
I’ve successfully completed the first two steps, and the variant descriptions are displaying.
However, in step 3, I’m supposed to modify the product-info.js file — but I can’t find this file or anything similar in the Enterprise theme. As a result, the description doesn’t update when switching variants.
Can anyone help me identify the correct file or location where the step 3 code should be added in this theme?
Here is the link to the theme files, in case it helps: https://drive.google.com/file/d/1nNzkUJyaARpNfnNUdEvCo65Y_xubqRxV/view?usp=sharing
Thank you!
Hello,
The Enterprise theme doesn’t have product-info.js—instead, look in the assets/ folder for files like product.js, main.js, or theme.js. Add the variant description update code there, or as a fallback, insert the JavaScript directly into your main-product.liquid at the bottom using a tag.
Best Regard,
Lora
Get the point. So because the first two steps involved settings up things in the backend and customizer it’s all good but this guy mostly uses dawn in his tutorials which is a free theme by Shopify and you are on a paid different theme so the function name and code is a bit different which is why you don’t get the exact file name.
Yes that is why I needed help. The product-info.js or its details are located in other file/s of the theme code that is why I have shared the theme file as well.