Do you want to create a discount code for your customers, but only have it apply to full priced products?
Maybe you have markdowns or sale products, but don't want your 10% off sign up code applying further discounts to those products?
Shopify doesn't have an easy checkbox option for this, but there is a way we can achieve this automatically without fluffing around manually adding products to collections.
---
How To Set Up A Discount Code That Excludes Sale Items
- You're going to edit all your full priced products to have a 'Compare at price' of 0.
- You're going to create an Automated Collection (or Smart Collection) that automatically fills with all products that have a 'Compare at price' of 0 (ie. all of your full priced products)
- You're going to create a discount code that applies only to that automated collection of your full priced products.
Any future products or price changes to your products should follow the following rule:
If your product is on sale, then your 'Compare at price' = the usual strikeout price (eg. 99.95)
If your product is not on sale, then your 'Compare at price' = 0
If you stick to the above, your discount code will never apply to sale products!
---
Step 1 - Double Check Your Theme Hides 'Compare at price' = 0
Every theme we've worked on hides the 'Compare at price' on the product page when it is set to 0 by default. It's always best to double check however.
- Select any product while you're in Shopify Admin
- Navigate to the price area
- Edit Compare at price to 0
- Check the product on the front end of your store
- Confirm that the a '$0.00' does not display next to the current price.
If you just see the standard price on the front end, go ahead and continue rolling this out for all products.
---
Step 2 - Bulk Edit 'Compare At Price' = 0
You can use Shopify's inbuilt bulk editor, or you can export your products and reimport them.
Using the Bulk Editor inside Shopify Admin (easiest method):
- In Shopify admin, navigate to Products
- Click the checkbox to Select All Products
- Click the prompt to 'Select all 50+ products from your store'
- Click 'Edit products'
- Shopify will load the bulk editor
- If the Compare at price column is not visible, click 'Add fields' and select Compare at price
- Select any cells where Compare at price is empty - you can shift + click to select a range.
- Type 0 with the cells selected and it will fill all selected cells with 0
The goal is to change any full priced product (which is any product that does not have a compare at price), to have a compare at price of 0.
Using import & export (if you have a lot of products):
- In Shopify admin, navigate to Products
- Click the checkbox to Select All Products
- Click the prompt to 'Select all 50+ products from your store'
- Click Export Products
- Shopify will export the products to a .CSV (spreadsheet file) - usually to the relevant email account if the file is large
- Open up a Google Sheet (or Excel, but we always recommend Google Sheets).
- Import the file you just downloaded (directly from Shopify, or from the email it sent the file to)
- Find the Compare at price column
- Select any cells where Compare at price is empty (these are full priced products)
- Enter 0 for any of these cells
- Save, export, or download the file as a .CSV
- Inside Shopify > Products screen, click import
- Import the file, and all of your products will be updated from that spreadsheet.
---
Step 3 - Creating An Automated (Smart) Collection For Full Priced Products
This Automated Collection will automatically stay updated with all of your full priced products (ie. products that have a Compare at price = 0).
- In Shopify admin, navigate to Products > Collections
- Click Create Collection
- Name the collection what you like - I recommend naming it something logical for customers - 'Our Range', 'Customer Favourites' etc.
Keep in mind that this collection will be findable by both Google and customers using search on your store, even though we won't link to it from any navigation area, or promote it. - Under 'Collection type', select 'Automated'
- Under 'Conditions', select 'all conditions'.
- Add a condition for:
Compare at price is equal to $0 - Make the collection only Visible to your Online Store sales channel. It is irrelevant for any other sales channels you may have installed.
This automated collection will now populate with all of your full priced products (ie. products with Compare at price = 0)
---
Step 4 - Creating A Discount Code That Only Applies To Your Full Priced Collection
- In Shopify admin, navigate to Discounts
- Click Create Discount and select Discount Code
- Fill out the Discount Code for whichever type of discount you need.
If you're creating a sign up offer you can usually use something like:
Discount code = WELCOME10
Type = Percentage
Discount Value = 10 - In 'Applies to', select 'Specific Collections'
- Select the automated collection you created in the previous step.
This means this discount code will now only apply to all of your full priced items inside of the automated collection. - Add any other additional requirements you wish, like minimum purchase value, or usage limits.
- When you're ready click save.
---
Remember To Keep Using Compare At Price = 0
You'll now have a discount code that will not apply to sale products on your store.
It will always automatically update for any new products you add to your store, or any new items you add a sale price to, as long as you stick with the following rules:
Any future products or price changes to your products should follow the following rule:
If your product is on sale, then your 'Compare at price' = the usual strikeout price (eg. 99.95)
If your product is not on sale, then your 'Compare at price' = 0