Monday, June 30, 2014

OOTB Promotions : ATG


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



Adding a new discount type involves the following tasks:


  1. Extend or create a calculator that supports the discount type.
  2. Modify the CalculatorInfo object to include the new discount type and calculator information.
The PMDL uses the 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..);






Popular Posts