How do multiple discount codes belong to one price rule (with once_per_customer=true) behave?

We can create multiple discount codes that belong to a single price rule but how does the {once_per_customer} works ?

When creating the price rule, we can set once_per_customer value be true and then Shopify will limit it to be used once per customer. However, what if we get multiple discount code? Is it for each discount code, the customer can use once (case 1)? Or, no matter what discount code the customer use, each customer can use the discount under a single price rule once (case 2)?

Let’s look at the example:#### Assume we have 2 discount code ( dc_one and dc_two ) that belongs to a price rule. A customer get both dc_one and dc_two.

Case 1: After the customer apply dc_one, the customer still can apply dc_two. But the customer can neither use dc_one or dc_two since then, because both of them have been used once.

Case 2: After the customer apply dc_one, the customer can’t apply dc_two or dc_one again. Because they are treated as one discount that can be used once_per_customer.

I hope my question is clear and thank you for any kind reply and solution.

Hi @jerrychan If I get your question correctly, you want to offer discount only once to your customer even if they have multiple discount codes available to them.

This is not directly possible on Shopify but you can try following method:

  1. You can auto tag customers as soon as they use discount on your store
  2. After that you can create a segment of customers who doesn’t have that tag
  3. Provide Discount only to that segment.

Here are the helpful links to do these three steps:
1.For Auto Tagging, I found couple of apps: https://apps.shopify.com/hkt-auto-tag & https://apps.shopify.com/mechanic

  1. For Segmentation, you can read this article: https://help.shopify.com/en/manual/customers/customer-segmentation/customer-segments/customer-segmentation-reference/customer-segment-shopify

3.For customer segment based discount, this article will help you: https://help.shopify.com/en/manual/discounts/discounts-faq

Though it requires some steps but I hope this will get your job done.

1 Like

Thank you @prpwebs !!! You get the question right !!!

Yes, you are right. I started some trials on how the discount code works myself. It works like my case 1 situation like what you said.

I think you alternative approach might be a good idea to try, thanks! :blush: