SwissUpLabs Logo

AW Raf

  1. Open app/design/frontend/base/default/template/aw_raf/checkout/cart/discount.phtml
  2. Find the following lines:

    return VarienForm.prototype.submit.bind(awrafDiscountForm)();
    
  3. Replace it with:

    if (awrafDiscountForm.form) {
        return VarienForm.prototype.submit.bind(awrafDiscountForm)();
    } else {
        // firecheckout integration
        checkout.setLoadWaiting(true);
        new Ajax.Request("<?php echo $this->getUrl('awraf/cart/createCoupon') ?>", {
            method: 'post',
            parameters: checkout.getFormData(),
            onSuccess: function() {
                checkout.setLoadWaiting(false);
                checkout.update(checkout.urls.shopping_cart);
            }
        });
    }
    
  4. Refresh cache and try to use Referred Friends Balance at firecheckout page.
Edit this Page