Add new button same as "Add to Cart" by setting the product price as 0 on product detail page

TarasDiakiv
Shopify Partner
3 0 0

I am going to implement the new feature.

I want to add the new button on product detail page same as "Add To Cart" button by setting the product price as 0.

It's for free order sample.
I want to customize that button with cart/add.js.

Could you please help me?

Thank you.

Replies 2 (2)

Sweet_Savior_3
Shopify Partner
1187 96 115

Hello @TarasDiakiv 

 

This can be done by the with the liquid code with the custom.

Don't forget to like and accept the solution to help others store owners.
Looking for an expert or Have any queries ? Send query to the Inbox
Coffee Tip ? Pay to shopify.dev.34@gmail.com
From Less To Further !!!
TarasDiakiv
Shopify Partner
3 0 0

Thanks for your response.
Could you please provide custom code and where I should add them?