The percent off product options discount enables you to offer a
discount for product options. Because options are never sold alone, but
always as part of a product, you must 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).
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 that have 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 might have a positive or negative in the storefront. If an option has a negative price in the storefront, the discount doesn't apply.
Because option IDs are not
required to be unique, if you add a product option ID that exists for
multiple products or catalogs, B2C Commerce detects this and shows
optionID (ambiguous)
in the discounted products rule.
Because shared options are unique, this only happens if you have a shared
and product-specific option 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. However, because the product rule must match both the selected products and selected option values, you can make sure the option discount is only applied to the products or values you want. For example, assume you have the following options:
ID | tvWarranty |
Name | Plasma Warranty |
Values | 000 - none 001 - one-year warranty 002 - two-year warranty |
ID | tvWarranty |
Name | LCD TV Warranty |
Values | 100 - one-year warranty 200 - two-year warranty 300 - three-year warranty |
The following table describes how to restrict the discount to specific products.
To apply the discount to: | Create a rule that includes: |
---|---|
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: This
restricts the discount to the LCD warranty because the two
tvWarranty options don't share the same 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:
|
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 that have a nonzero price. This doesn't occur with any other discount type. This means that the discount on the product option can appear greater than the discount specified when specifically discounting the product option, if a product promotion also discounts the product.
For the sake of promotion compatibility rules, B2C Commerce still considers a promotion that targets product options as a product promotion. Thus, it isn't possible to have two class-exclusive product promotions - one that targets a base product and another that targets an option - apply to the same SKU in the cart.
The following example uses SiteGenesis data and can be duplicated in your copy of SiteGenesis.
Now you add the condition that restricts the promotion to products with a specific product option ID value.
Now you add the condition that the products must be Samsung products.
Products with option 'tvWarranty (Extended Warranty)' = '002 (3 Year Warranty)'
and with brand = 'Samsung'
and in category 'electronics-televisions(Televisions)' or subcategories Global product exclusions are enabled.