MageStore Customerreward
This module redefines the checkout/payment/methods.phtml
template and we
need to add firecheckout reload to customerreward template.
-
Open
customerreward/checkout/payment/methods.phtml
file and find the following lines (~153-163):onComplete: function(xhr) { if (xhr.responseText.isjsON()) { var response = xhr.responseText.evalJSON(); if (response.updatepayment) { $('checkout-payment-method-load').update(response.html); } else { $('customerreward-mask').hide(); $('customerreward-payment-method').show(); } } }
-
Replace them with:
onComplete: function(xhr) { if (xhr.responseText.isJSON()) { var response = xhr.responseText.evalJSON(); if (response.updatepayment) { $('checkout-payment-method-load').update(response.html); } else { $('customerreward-mask').hide(); $('customerreward-payment-method').show(); } } if (typeof FireCheckout !== 'undefined') { checkout.update(checkout.urls.shopping_cart); } }
-
Find these lines again (~344-356) and add firecheckout update function inside it too.