How can I edit the code of a specific product page?

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

Thanks

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/highlight/true#M160318

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!

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

@Morek @Michael_Pink Thanks for the answers guys..

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

(Default Product Template)

(New product Template)

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

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

HI @Sermak you should not do that

@Michael_Pink So do you know what can i do?

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

Thanks

Hi @Sermak

Hope you’re having a great day!

I’m happy you fixed it.

Hi @Sermak ,

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

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.