Sometimes you need to create a discount code that will work for auto-generated products. But how it is possible to create it? Since product generated once your client click to "Add to cart" it is not possible to choose a specific product for discount.
Let's create a collection for auto-generated products and assign a discount to the whole collection.
1) Create collection for products with cpb_ordered product type:
You don't need to publish this collection in a main menu, therefore your client can't see it.
2) Create a discount code for this collection:
Please e-mail us if you have any questions!