Universal identifier for the variants sections in product-template.liquid file across themes?

jean21
New Member
2 0 0

I'm working on an app that adds a piece of html code after the variants (Color, Size, etc) section of the product page. Right now I'm identifying the variants section in the product-template.liquid file by referencing the class="product-form__variants no-js". This is from the Debut theme. The problem is that I'm seeing that some merchants that have installed the app are not seeing the added code snippet in this section and I think its because the class in the variants sections might be different than "product-form__variants no-js" in other themes. I was wondering if there is another identifier for the variants sections that is consistent accross themes? Or is the only way to do this to manually inspect every single theme and map out what the class name is for the variants section for each theme?

 

 

0 Likes