Skip to Content
Jan 23, 2018 at 08:50 AM

How to override Voucher jalo in hybris 5.7 ?


I am trying to override Voucher jalo class to override OTB VoucherValue getVoucherValue(AbstractOrder anOrder) method. Voucher jalo is an abstract class. I have followed this post and have defined a spring bean using the fully qualified class name of the voucher jalo class. Like below

 <bean id="de.hybris.platform.voucher.jalo.Voucher" 
       class="co.xx.xxxx.jalo.MyVoucher" scope="prototype" /> 

But my overrided method is not called. hybris experts, can you have any idea how to achieve this ?