If you have created a bundle offer with multiple products and variants but notice that the discounts are not being applied correctly at checkout, this could be related to Shopify's metafield storage limit or discount function instruction count limit.
When you add a large number of products to a single bundle offer, especially when each product has multiple variants, the overall bundle configuration can become complex.
For example, if your bundle contains 30 products, each with multiple variants, the total number of variants could exceed 200.
This may cause the bundle configuration to exceed Shopify's 2-million-character metafield storage limit or potentially reach Shopify's discount function instruction count limit.
When these limits are reached, Shopify may not be able to process the discount function as expected, which can prevent discounts from being applied correctly.
Here are a few alternatives you can try to simplify your bundle setup and avoid these limitations.
Instead of adding a large number of products to a single bundle offer, distribute them across multiple offers.
Example:
If you have 30 products in one offer, you can split them into 6 separate offers, with 5 products in each offer.
This reduces the number of products and variants processed within a single offer and may help avoid the limitation.
Another alternative is to create Shopify collections containing the relevant products and add those collections to your bundle offers instead of selecting multiple products individually.
This can help simplify your bundle configuration, reduce setup complexity, and potentially prevent the limits from being exceeded.