Guides / How to test a Shopify discount code before you share it
How to test a Shopify discount code before you share it
You can test a Shopify discount code without paying anything. Open your store in a private window, add a product, enter the code at checkout and check the total before the payment step.
The short answer
Shopify shows the discount at checkout, before anyone pays. So the quickest test is to shop your own store like a customer, enter the code, and read the total. You don't need to place the order. Do it on your phone, in a private or incognito window, so you see exactly what a new shopper sees.
Test every code before it goes into a WhatsApp message, an email or a creator's post. Once a code is out, a mistake costs you money or annoys the people you just invited.
Step 1: Write down what the customer should pay
Before you open the store, work out the right answer. Pick one product in the offer and one product that should not get the discount. Write down the price each one should come to at checkout.
This sounds slow, but it is the step that catches the expensive mistakes. If you only check that "the code worked", you won't notice it took off the wrong amount.
Step 2: Open the store as a new shopper
- Open a private or incognito window on your phone. This way you are not logged in as yourself, and no old cart or old code is stuck in the browser.
- Go to your store and add the product from Step 1 to the cart.
- Go to checkout and type the code in the discount box. Type it by hand, the way a customer would.
- Fill in a delivery address so Shopify can show shipping and the final total.
- Stop before you pay. Read the subtotal, the discount line and the total.
If your store is still password protected, enter the store password first. The checkout works the same way.
Step 3: Check the five things that go wrong most
1. The amount
Does the total match what you wrote down? If not, check whether the percentage came off the price you expected. This is where most MRP stores get caught (more on that below).
2. The products
Now add the product that should not get the discount. The discount line should not change for it. If it does, the code is set to all products when you meant a collection, or the other way round.
3. The minimum order
If the code needs a minimum spend, test just below it and just above it. Below, the code should be refused. Above, it should work.
4. Who can use it
If the code is only for certain customers, such as past buyers or one segment, test with a customer email that should qualify and one that should not. If it is set to one use per customer, Shopify checks the shopper's email or account at checkout. Our guide to a Shopify discount code that is not working explains each of these rules.
5. The other offers
If an automatic discount or a sale price is already running, see what happens when the code is added on top. Does it stack, replace the other offer, or get refused? Make sure the result is the one you planned.
Step 4: Test the link, not just the code
If you share a discount link instead of a code, test the link itself. Open it in a fresh private window, add a product and go to checkout. The code should already be applied. Check that the link opens the right page, and check it again from the WhatsApp or email app it will be sent from. The WhatsApp discount campaign guide shows how to make the link.
Step 5: Check the dates and the limits
- Start and end time. Shopify uses your store's time zone, set under Settings > General. A code set for midnight in the wrong time zone starts hours early or late.
- A code that starts tomorrow can't be tested at checkout today. Test it with a start time of now, then set the real start time once it passes.
- Usage limits. If the code has a total-uses limit, remember that a placed test order can use up one of them. Test at checkout without paying, and set the limit last.
Do you need to place a real test order?
For the discount itself, no. The total at checkout is the total the customer pays. Place an order only if you also want to test the payment, the order email or the invoice.
If you do, be careful. Shopify's Test payment gateway only works after you switch off your live card provider, and while it is on, real customers can't pay by card. If your store offers Cash on Delivery, a small COD order is a simpler test. Cancel it afterwards and put the stock back.
The MRP stores' catch
Many Indian stores show the MRP as the compare-at price, with a lower selling price next to it. Shopify's own percentage codes take their percentage from the selling price, not the MRP. A test is how you spot it before your customers do.
An example. The MRP is Rs 1,000 and the product sells at Rs 800. Your message says "40% off MRP".
- You expect the customer to pay Rs 600, which is 40% off Rs 1,000.
- A normal Shopify code takes 40% off Rs 800, so checkout shows Rs 480. That is 52% below your MRP, and Rs 120 less than you planned on every order.
You can fix this without an app. Raise the price back to the MRP on the products in the offer, run a plain 40% code, and put the prices back when the sale ends. The catch is that everyone browsing the store sees the higher price while the offer runs.
One other option is our MRP Discount app. You make the code in the app, it takes the percentage from the MRP, and the code then shows on Shopify's Discounts page with your other codes. Whichever way you choose, run the same test: checkout should show Rs 600. The full maths is in MRP vs sale price.
Five-minute checklist
- Write down what one product in the offer and one outside it should cost.
- Open a private window on your phone and add the offer product.
- Type the code at checkout and stop before paying.
- Check the total matches your number.
- Add the product outside the offer and check it stays at full price.
- Test just under and just over any minimum spend.
- Test the shareable link from the app you will send it from.
- Check the start and end times in your store's time zone.
- Set the usage limit last.
Five minutes now saves you a sale that gives away too much, or a message full of customers saying the code doesn't work.
More guides
Run your next sale on the MRP.
Install it, make one code, and check it in your own checkout. The first 7 days are free.