FROM CACHE - en_header

Adding Button to Product Description using Custom Product Template

Solved
robinskinstudio
Tourist
6 0 2

Hi,

 

I'd like to add a custom button to a specific product template (product-dmk-template.liquid) so it displays underneath the product description automatically. As a temporary solution and to show the result I'd like to achieve, I added this code to the individual product page description here:  ( https://robinskinstudio.com/products/dmk-test-1 )😞

 

 

 

<br>
<br>
<button class="btn btn--add-to-cart btn--secondary">

<a href="https://robinskinstudio.com/pages/dmk" class="btn__text">Contact Us To Purchase</a></button>

 

 

 

Is there a way to add this to my custom template so my client doesn't have to add the code to every individual product description? 

 

Any help is so appreciated, thanks in advance!

Accepted Solution (1)

Accepted Solutions
threed
Pathfinder
80 11 22

This is an accepted solution.

Yes, go to the liquid file for the product template you're using and put that code in the place you would like it to show. It will then show for every product that uses that page!

If I was able to help you, please help me by liking my comment and marking it as an accepted solution.
If you're feeling extra nice, you can throw a coffee at me through Venmo @scoducks 🙂

View solution in original post

Replies 2 (2)
threed
Pathfinder
80 11 22

This is an accepted solution.

Yes, go to the liquid file for the product template you're using and put that code in the place you would like it to show. It will then show for every product that uses that page!

If I was able to help you, please help me by liking my comment and marking it as an accepted solution.
If you're feeling extra nice, you can throw a coffee at me through Venmo @scoducks 🙂
robinskinstudio
Tourist
6 0 2

@threed Amazing, it worked! Thank you so much 🙂🙂