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

Solved

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

abdullahalasif
Shopify Partner
5 0 0

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. 

 

Screenshot 2022-08-18 at 10.36.55 AM.png

Accepted Solutions (2)

Kani
Shopify Partner
468 125 232

This is an accepted solution.

Hi @abdullahalasif 

 

it's 'product.json'.

add to cart in 'main-product.liquid'

Hey!! ʕ ᵔᴥᵔ ʔ
Please click 'Like' and ' Accept as Solution' to encourage me to continue sharing my expertise. ♡
If you need any technical assistance, feel free to send me a DM. You no longer have to search for answers without getting a response. 🙂

View solution in original post

imatikshaikh
Shopify Partner
85 15 14

This is an accepted solution.

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

Available for hire, for all small tasks and full store development, theme-based and custom.
If I was able to help you. like my post and mark it as an accepted solution.
Founder @ Ecommerce Gurus Agency
A KodeKult Company | Contact Me via email

View solution in original post

Replies 6 (6)

Kani
Shopify Partner
468 125 232

This is an accepted solution.

Hi @abdullahalasif 

 

it's 'product.json'.

add to cart in 'main-product.liquid'

Hey!! ʕ ᵔᴥᵔ ʔ
Please click 'Like' and ' Accept as Solution' to encourage me to continue sharing my expertise. ♡
If you need any technical assistance, feel free to send me a DM. You no longer have to search for answers without getting a response. 🙂
abdullahalasif
Shopify Partner
5 0 0

Thank you. It Worked. Any idea why I don't have this "product-template.liquid" ? 

abdullahalasif
Shopify Partner
5 0 0

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

Kani
Shopify Partner
468 125 232

about Online Store 2.0. you can read this post.

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

Hey!! ʕ ᵔᴥᵔ ʔ
Please click 'Like' and ' Accept as Solution' to encourage me to continue sharing my expertise. ♡
If you need any technical assistance, feel free to send me a DM. You no longer have to search for answers without getting a response. 🙂

imatikshaikh
Shopify Partner
85 15 14

This is an accepted solution.

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

Available for hire, for all small tasks and full store development, theme-based and custom.
If I was able to help you. like my post and mark it as an accepted solution.
Founder @ Ecommerce Gurus Agency
A KodeKult Company | Contact Me via email
marketingwiz
Tourist
10 0 0

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. 🙂 Thanks.