The only modification that needs to be done is within your themes in /components/com_onepage/themes/onepage.unlogged (and logged).tpl.php
Just add this code to the end:
- Code: Select all
<script type="text/javascript">
function checkCoupon(wasValid)
{
coupon = getCouponCode();
if (coupon != null)
if (coupon == '')
{
alert('You must use a coupon before submitting the order');
return false;
}
return wasValid;
}
addOpcTriggerer('callSubmitFunct', 'checkCoupon');
</script>