Product.liquid disappeared in new Dawn theme

Solved

Product.liquid disappeared in new Dawn theme

MarcosJavi
Tourist
4 0 1

We had a custom widget on the product page of our Shopify store that was written in product.liquid on the Venture theme. We switched to the Dawn theme and there is no longer a product.liquid, where can we add back the widget for the product page?

The widget itself is used to choose instalments for a given product.

Thanks,

Accepted Solution (1)

PaulNewton
Shopify Partner
6350 582 1355

This is an accepted solution.

Online Store 2.0 themes use the JSON section architecture.

https://shopify.dev/themes/architecture/templates 

https://shopify.dev/themes/architecture/templates/json-templates 

 

So Vintage templates such as product.liquid get converted into a matching JSON template product.json

product.json is a JSON declarative file that lists what sections are in it.

Example being the bulk of product logic being in main-product.liquid (whereas in vintage themes it may have been product-template.liquid)

 

It is those sections you need to edit to include a custom snippet , or create to then integrate with product.json.

 

 

Learn to migrate vintage themes to OS2.0 themes here:

https://shopify.dev/themes/migration 

 

Note there is also now in OS2.0 themes the option of using liquid code directly in custom liquid block through the visual theme editor with some limitations.

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org


View solution in original post

Replies 4 (4)

kaymay
Tourist
9 0 3

I am having a similar issue. I need to edit in product.liquid too. Have you figured this out?

 

andrewkain
Shopify Partner
1 0 1

I think it's now under main-product.liquid

 

I'm kinda new to Shopify but I've been coding for a while and after messing around with a few files, I came to figure out that if I edit this file, then all my other product files will be modified accordingly. 

 

Hope this helps

PaulNewton
Shopify Partner
6350 582 1355

This is an accepted solution.

Online Store 2.0 themes use the JSON section architecture.

https://shopify.dev/themes/architecture/templates 

https://shopify.dev/themes/architecture/templates/json-templates 

 

So Vintage templates such as product.liquid get converted into a matching JSON template product.json

product.json is a JSON declarative file that lists what sections are in it.

Example being the bulk of product logic being in main-product.liquid (whereas in vintage themes it may have been product-template.liquid)

 

It is those sections you need to edit to include a custom snippet , or create to then integrate with product.json.

 

 

Learn to migrate vintage themes to OS2.0 themes here:

https://shopify.dev/themes/migration 

 

Note there is also now in OS2.0 themes the option of using liquid code directly in custom liquid block through the visual theme editor with some limitations.

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org


ZemoClub15
Visitor
2 0 0

Hi Paul,

quick question, i need help because i added the "ultimate badges from Conversion bear badges" into the theme dawn and i saw now that i placed it wrong.

Can you help me in which section i placed it. I need to remove it.

the URL is www.scheffinger.de

Thx for your support.

Peter

 

Bildschirmfoto 2023-12-05 um 23.58.12.pngBildschirmfoto 2023-12-05 um 23.57.21.png