Discount on a Product Option
To offer a discount for a product option, use a percent off promotion. Because options are never sold alone, but always as part of a product, first identify the products with the options that receive the discount. For example, Get 50% off on the glossy paper option (usually a $2.99 upgrade).
The percent off product options type is available for Without qualifying products, With number (quantity) of qualifying products, and with With amount (value) of qualifying products.
When evaluating products for this discount, Salesforce B2C Commerce selects the products with the most expensive option value first.
This discount only applies to options with a positive price when viewed in the storefront. Depending on the option values and whether an option is an included option for the product, the price can be positive or negative in the storefront.
Ambiguous Options
Option IDs aren't required to be unique. If you add
a product option ID that exists for multiple products or catalogs, B2C Commerce detects shows
optionID (ambiguous)
in the discounted products rule. Because shared options
are unique, this only happens for shared and product-specific options with the same name or two
product-specific options with the same name.
When the option ID is ambiguous, the discount applies to all options with that ID. Because the product rule must match the selected products and selected option values, you can make the option discount apply to only specific products or values. For example, you have the following options:
ID | Name | Values |
tvWarranty | Plasma Warranty |
000 - none 001 - one-year warranty 002 - two-year warranty |
tvWarranty | LCD TV Warranty |
100 - one-year warranty 200 - two-year warranty 300 - three-year warranty |
To apply the discount to: | Create a rule with: |
---|---|
All TVs | Products with option 'tvWarranty (ambiguous)' = '100' or '200' or '300' |
LCD TVs | Product Option ID is equal to one or more of the option values. The product rule appears as follows: Products with option 'tvWarranty (ambiguous)' = '100' or '200' or '300' (This restricts the discount to the LCD warranty because the two tvWarranty options don't share option values.) |
Samsung Plasma TVs |
Product Option ID is equal to one or more of the option values. Brand is equal to Samsung. TV type is equal to 0010 Plasma. The product rule appears as follows: Products with option 'tvWarranty (ambiguous)' = '000' or '001' or '002' and with brand = 'Samsung' and with attribute 'tvType' = '0010' |
Option Prices Affected by Product Discounts and Option Discounts
When applying a percentage discount to an option product, B2C Commerce also discounts the option line items. This results in price adjustments on the base product line item and all option line items with a nonzero price. This doesn't occur with any other discount type. If a product promotion also discounts a product, the product option discount can appear greater than the specified discount.
Promotion Compatibility Rules
For the sake of promotion compatibility rules, B2C Commerce still considers a promotion that targets product options as a product promotion. For example, you have a class-exclusive product promotion that targets a product and another that targets an option. If both apply to the same SKU in the cart, both promotions canβt apply.