Creating a Promotion with Cart Custom Attributes and Product Attributes
Use Case: You want to offer registered shoppers a 20% discount when they purchase products made of platinum metal.
The system checks if the shopper is registered and if the product they added has the attribute of platinum.
Key Conditions:
- The cart must have the custom attribute. See Create Cart Custom Attribute API.
- The eligible product must have the attribute value of platinum. See Adding Templates to Products.
To set this up in the Promotions Builder:
- In Commerce Manager, go to Merchandise > Promotions > Builder. Edit or create a new promotion.
- Create a condition Cart Custom attribute that determines if your shoppers are registered when shopping. Set this value as true for anyone who has signed up for an account.
- Create another condition Cart Items condition to ensure cart contains product with attribute value of platinum.
- Set up an Item Discount in the Actions section as 20% off.
- Setup promotion code if the promotion has Coupon-driven toggle ON (by default). See Creating promotion codes.
See the following image: