MageStore_Customerreward

by Peter D.
This module redefines the checkout/payment/methods.phtml template and we need to add firecheckout reload to customerreward template.1. 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();
                          }
                      }
                  }
2. 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);
                      }
                  }
2. Find these lines again (~344-356) and add firecheckout update function inside it too.

Recent articles

Back to top