Maximizing Sales
The Ultimate Guide to Showing Discounts on Product Pages in Shopify
Table of Contents


Increase sales and improve customer experience.
In this article, we’ll guide you on how to show discounts on product pages in Shopify so that your customers can easily see and take advantage of them.

Do you have a large inventory on your Shopify store?
InventoryHero is a useful Shopify app designed to help online store owners manage their inventory more efficiently by automatically discounting non-moving or slow-moving items at the variant level.
Set up automatic discounts
Step 2:

Step 3:
After setting up the discount, make sure to enable the “Automatic discount” option so that it’s automatically applied at checkout. You can also set a minimum order value for the discount to apply or limit the discount to specific products or collections.

Step 4:
Save your discount and it will be applied automatically to eligible orders at checkout.

By setting up automatic discounts in Shopify, you can save time and effort while also increasing the visibility of your promotions. Customers will see the discounted price on the product page and be more likely to make a purchase, leading to increased sales and revenue for your store.
Use discount codes
Discount codes are another way to offer discounts on your Shopify store. You can create unique discount codes for specific products or collections and share them with your customers. To show discount codes on product pages, you can add a discount code section on the product page template.
Here’s how to add a discount code section on the product page template:
Step 1:
Go to the “Themes” section of your Shopify admin dashboard and click on “Edit code” under the theme you want to modify.


Step 2:
Then navigate to the product page template and find the location where you want to display the discount code section.

Step 3:
Add the following code snippet where you want to display the discount code:
“`{% if discount_code %} Discount code: {{ discount_code }} {% endif %}“`

Step 4:

This code snippet will check if a discount code is available for the product and display it on the product page if it is.

Do you have a large inventory on your Shopify store?
InventoryHero is a useful Shopify app designed to help online store owners manage their inventory more efficiently by automatically discounting non-moving or slow-moving items at the variant level.
To create a discount code for a specific product or collection:
Step 1:
Go to the “Discounts” section of your Shopify admin dashboard and click on “Create discount”.

Step 2:
Choose the type of discount you want to create and configure the settings, such as the discount amount or percentage, minimum purchase amount, and duration.

Step 3:
Under the “Applies to” section, select “Specific products” or “Specific collections” and choose the products or collections that you want the discount code to apply to.

Step 4:
Click on “Save” to create the discount code.

Once you’ve created the discount code, you can share it with your customers through email campaigns, social media, or other marketing channels. Your customers can enter the discount code at checkout to receive the discount.
By adding a discount code section on your product page template and creating unique discount codes, you can offer discounts to your customers and encourage them to make a purchase on your Shopify store.
Use apps
Aren't you confortable with editing code?
These apps provide you with various discount display options, including percentage discounts, dollar amount discounts, and countdown timers. You can easily customize the design and placement of the discount display to match your store’s branding.


Do you have a large inventory on your Shopify store?
InventoryHero is a useful Shopify app designed to help online store owners manage their inventory more efficiently by automatically discounting non-moving or slow-moving items at the variant level.