<% if (ob.errors['title']) print(ob.formErrorTmpl({ errors: ob.errors['title'] })) %> >
<% if (ob.errors['discountCode']) print(ob.formErrorTmpl({ errors: ob.errors['discountCode'] })) %>
<% if (ob.errors['percentDiscount']) print(ob.formErrorTmpl({ errors: ob.errors['percentDiscount'] })) %> <% if (ob.errors['priceDiscount']) print(ob.formErrorTmpl({ errors: ob.errors['priceDiscount'] })) %>
<% let discountAmount; if (typeof ob.priceDiscount !== 'undefined') { discountAmount = typeof ob.priceDiscount === 'number' ? ob.currencyMod.formatPrice(ob.priceDiscount, ob.getCurrency()) : ob.priceDiscount } else { discountAmount = typeof ob.percentDiscount === 'number' ? ob.upToFixed(ob.percentDiscount, 2) : ob.percentDiscount; } if (typeof ob.price === 'number') { discountAmount = ob.currencyMod.formatPrice(ob.price, ob.getCurrency()) } %>