Trying to input a gift voucher in one of our Foundation 6 templates you are seeing the following error:

"Uncaught ReferenceError: giftVoucherCodeOnChange is not defined at HTMLInputElement.onchange"



To fix this.....go to the shopping cart layout and find the bit of code that outputs the giftvoucher input field.

Change this:
<input onchange="{{giftVoucherCodeOnChange}};return false;" value="{{giftVoucher}}" class="discountcodeInput" id="GiftVoucher" name="GiftVoucher" type="text">

To this:
<input onchange="{{giftVoucherOnChange}};return false;" value="{{giftVoucher}}" class="discountcodeInput" id="GiftVoucher" name="GiftVoucher" type="text">


We have updated the master version of the template so you can also re-request the template to get this updated version of the shopping cart. (Note: this does not cost you credits since you already own the template)