cancel
Showing results for 
Search instead for 
Did you mean: 

How to display voucher redemption text box in checkout page?

Former Member
0 Kudos

Hi Experts,

I have created some serial vouchers and promotional vouchers, but how to redeem those vouchers on check out page. usually we can see text box in e-commerce sites. please help, how to integrate that text box. let me know any procedure for that functionality.

Thanks, Sravan

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member634058
Active Participant
0 Kudos

In Hybris 6.xx versions, voucher redemption text box and button are already present in the cart page. You just need to apply any voucher. In older versions, as far as I remember, there is no placeholder to apply voucher in the storefront. It is available for backoffice and hmc. You can create your own placeholder for redeed releasing voucher. Make sure proper service methods are called while applying or releasing voucher. Also, invalidation should be created. PFB voucher links for older versions: https://wiki.hybris.com/display/release5/voucher+Extension

Former Member
0 Kudos

Hi Sravana,

Check cartVoucher.tag file. It contains the view logic to capture voucher code and pass the value to controller as a ajax call. Basically you need to have a form , take input as a text input and have one button to make a call to controller.Now, make a ajax call .In controller capture this value and recalculate your cart if valid voucher code is given and related prices and proceed as per requirement.

Regards, Sid

Former Member
0 Kudos

cartVoucher.tag file is not available in 5.4. please clarify