Apply Discount Code only to Variant in Collection

Is there any way to apply a discount code to only one variant of a product?

In reality, I would prefer to create a collection that only includes the one variant.

Example:

Product A has two variants — (1) Physical CD and (2) Streaming, and it part of a collection called “My Products”

I would like the discount code, Discount50%, to apply only to the Physical CD variant.

Ultimately, I would prefer to have a collection called “My Physical Products”, but the whole product is added if one of the variants matches the criteria.

One thought is to line item scripts, but I prefer avoiding them as much as I can

Hi @charles_loder

Thank you for your question.

You could create a discount code for a specific variant by doing these steps below:

  1. From your Shopify admin, go to Discounts.

  2. Click Create discount, and then click Discount code.

  3. In the Discount code section, do either of the following:

    • Enter a name for the new discount code, for example, 50offPhysicalCD.
    • Click Generate code.
  4. In the Types section, do either of the following, select Percentage and then enter a percent value in the Value section.

  5. In the Applies To section, select Specific products, click Browse, check the appropriate variants, and then click Add.

  6. Check the suitable solution at Minimum requirements, Customer eligibility, Usage limits, and Active dates section.

  7. Click Save discount code.

If you feel like this answer is helpful, please mark it as a SOLUTION.

Best regards.

What if you have 800+ products each with 4-5 variants? I’m trying to do this as well, I want to discount my1 variant, tis will take so long and then i have to change it back when the promo is over. Is there any other way to do this?

I’m also looking for a solution to this.. I cant offer the same discount to every product variant. I only want to offer it for 1 variant and my products all have the same 4. It’s very frustrating, I cant browse all 1500 products and do this each time i want to offer a sale or discount. I cant believe it’s this hard to do.

@u3dme71 , if you’re able to set up an automatic collection based on something in the variant’s title, for example, you can just set up the discount to apply just to that automatic collection.

Would that approach work for you? For example, you can create an automatic collection for physical product variants like this:

Same challenge.

@Discount-Bot this solution is close, except that in our case this just creates a collection of the entire product catalog, as all of our listings have a physical or digital option.

The discount applies to everything in the Collection, and the Collection contains both Physical and Digital variants. There isn’t a way to only include the Digital variant in the Collection. (As far as I can tell)

Hey have you found a solution?

I’m in the same boat. I have over 200 products, all with the same 2 variants - 50g and 250g sizes. I only want to offer tiered discount pricing on the 250g sizes. I am adding products with the same variants all the time, so manually adding a discount to the 250g Variant is a waste of time.

I’ve spent hours tonight trying to find something that automates this. Ugh…!!!

I don’t want separate products for these Variants.