Can't find the product-template.liquid in the dawn theme code

I don’t have product.liquid & product-template.liquid. Is there a reason for that? I have products, collections, size, colour variations for products.

I need to edit the code from product-template.liquid to track add_to_cart button for GA4 but now I can’t see that.

Hi @abdullahalasif

it’s ‘product.json’.

add to cart in ‘main-product.liquid’

4 Likes

@abdullahalasif the file name is main-product.liquid and it’s under sections folder

3 Likes

Thank you. It Worked. Any idea why I don’t have this “product-template.liquid” ?

Thank you. It Worked. Any idea why I don’t have this “product-template.liquid” in my Shopify website?

about Online Store 2.0. you can read this post.

https://www.shopify.com/partners/blog/shopify-online-store

Hi, can I seek help from you regarding product schemas? I can see my product schemas in the source code (ctrl + U). But I am unable to locate them in the Shopify code editor dashboard. They are literally nowhere. I am unable to edit them. Any help would be really appreciated. :slightly_smiling_face: Thanks.

1 Like