OOTB Promotions :
- Specific amount off a particular product
- Percentage amount off a whole order
- Specific amount or percentage off a product based on an attribute
- Free shipping for a specific product
- Buy one, get one free
- Free gift with purchase
- Extend or create a calculator that supports the discount type.
- Modify the
CalculatorInfo
object to include the new discount type and calculator information.
CalculatorInfo
to identify which calculator to use.You can determine the promotion type by checking if its item descriptor is a subtype of the base item, shipping, and order discount item descriptors:
if (((GSAItemDescriptor) pricingModel.getItemDescriptor()).isSubTypeOf("Item Discount"))
List qualifyingItems = qualifierService.findQualifyingItems(...params..);