Add Discount Text on Product Page (Debut)

Solved
Highlighted
New Member
44 0 0

Hello,

 

How can i add a message just under 'Tax Included' that reads out a discount message.

 

Many thanks!

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1066 101 245

This is an accepted solution.

Hey there, @MSY92 

 

Bo here from Shopify Support! 

 

That is a really great question and it can be achieved with just a little bit of HTML coding. This tutorial is specific to an unedited version of the Debut theme. We cannot guarantee results for themes that have been modified with custom coding and/or apps. We suggest hiring a Shopify Expert, if you are not comfortable proceeding with the following tutorial, or wish to make any variations to this tutorial.

 

  • Go to Online Store > Current Theme > Edit Code. 
  • Open Sections > product-template.liquid. 
  • Search for 
            {% capture "form_classes" -%}
  • Just before the line, you can add your line of text such as:
    <p> 20% Dicount Using Code: THISDISCOUNT </p>
  • Click Save.

Let me know how this goes and if there is anything else I can assist you with, I'm happy to help!

 

All the Best,

Bo

Bo | Social Care @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

1 Like
Highlighted
Shopify Partner
76 8 20

Would the discount message be static or your want it to change based on a criteria?

I help family-run Shopify stores increase sales from existing traffic Learn More
Problem Solved? ✅ Accept the solution so you can help others.
Confused? Busy? Let me solve it for you: rumen@rumendimitrov.com
Did my answer save you time? Buy me a coffee, please ☕ :) paypal.me/braiv
0 Likes
Highlighted
Tourist
5 0 2

Thanks Bo - really simple and it worked, I added the bold <strong></strong> to highlight the text I wanted to add, so

<p><strong>The text I added</strong></p>

0 Likes