Tuesday, February 21, 2017

Hybris - Promotions

The following are the list of OOB promotion in hybris
Order level
  • Order threshold Change delivery mode - eg. Get free next day delivery when u spend 100 or more
  • Order threshold fixed discount - eg. Get 50 discount when you spend 200
  • Order threshold free gift - eg.Get a free product when you spend 200
  • Order threshold free voucher -eg. Get a $5 voucher when you spend 200
  • Order threshold perfect partner - Get a product for a specific price when you spend 200
Product Level
  • Bundle - Buy product a, b & c together for a specific price 
  • BOGO - Buy one Get one free
  • Fixed Price - Fixed price for product/category
  • Multi Buy - Buy any 3 for fixed price 
  • Percentage Discount - 15% off for product
  • One to one perfect partner - Buy X and Y together for $50
  • Perfect Partner - Buy X and Y together and get Y for fixed price
  • Perfect Partner Bundle - Buy X together with n number of Y together for $50
  • Stepped Multi-buy - Buy any 3 for $30, buy 4 for $35,buy 5 for $50
Steps to create and activate a promotion
  • Using hmc the business user will be able to create any of the above promotions
  • Open hmc
  • Select Marketing->Promotions
  • Right click on Promotions and press the context menu Create
  • That will give all the above promotions as context menu
  • Select the type of the promotion from the menu to create
  • That will open the promotion edit screen
  • Enter the details with enable check box as true
Step to Create a new Promotion Type(https://wiki.hybris.com/pages/viewpage.action?pageId=294094365)
  • Create the promotion type xml definition 
  • Create the property file for localization
  • Run ant all will generate the jalo classes. In the ant console you will get an error because of missing abstract method implementation
  • You need to implement evaluate and getResultDescription abstract methods
  • Evaluate method contains the evaluation logic and getResultDescription returns message fired or message could have fired
  • Ant all to build the environment
  • Using admin console do an update
  • Now if you are opening hmc you will be able to see the new promotion type

No comments:

Post a Comment