Can you modify the code of a specific product page on Shopify?

Sermak
Pathfinder
153 3 41

Hello guys.. Can anyone tell me please how to edit the code of a specific product page?

 

Thanks

Replies 9 (9)

Michal17
Shopify Partner
835 73 175

Hi @Sermak 

Hope you're having a great day!

Please see how to edit a specific product page here: 

https://community.shopify.com/c/Shopify-Design/How-to-add-code-to-only-one-product-page/m-p/641424/h...

If you have any further questions, please do reach out either here on the forum, or via a private message/email. If you found this comment useful then please hit Like and Accept the Solution!

Sermak
Pathfinder
153 3 41

@Michal17 @Michael_Pink Thanks for the answers guys..

I just create a new template and look what happened..

(Default Product Template)

today.PNG

 

(New product Template)

today 1.PNG

 

The problem is that in new product template i just copy and paste the code from the default product template... If you see it appears "Buy it now" button and the width of product change,also there is no quantity section..

Can we do something to fix it please?

Default Product Template URL: https://theloggos.com/collections/all-mens-socks/products/mens-avocado-calf-socks 

New Product Template URL: https://theloggos.com/collections/all-mens-socks/products/mens-astronaut-calf-socks 

CODE: OPENNOW

Thanks

Sermak
Pathfinder
153 3 41

Should i change the  {% form 'product' to  {% form 'product.Free-Products' ? The name that i have set on the new Procuct template?

Michael_Pink
Shopify Partner
446 77 107

HI @Sermak you should not do that

My life is sharing!
I hope my solution can help you save at least 1$
Build Page faster with: PageFly PageBuilder App.

shopify.expert.team@gmail.com
Sermak
Pathfinder
153 3 41

@Michael_Pink So do you know what can i do?

Sermak
Pathfinder
153 3 41

Finally i fix it.. I just go to theme - customize - select the product and edit it there

Thanks

Michal17
Shopify Partner
835 73 175

Hi @Sermak 

Hope you're having a great day!

I'm happy you fixed it.

Michael_Pink
Shopify Partner
446 77 107

you can create a new product template and assign new template for the product you want.

My life is sharing!
I hope my solution can help you save at least 1$
Build Page faster with: PageFly PageBuilder App.

shopify.expert.team@gmail.com

LitExtension
Shopify Partner
4860 1001 1132

Hi @Sermak,

You can refer https://shopify.dev/tutorials/customize-theme-create-alternate-templates#create-a-new-template-file-...

Then go to the product you want to edit and select the newly created template: https://i.imgur.com/3ATS3J8.png

Hope it clear to you.

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify