IWD Checkout refresh review after payment selection

With the IWD onestep checkout plugin, there’s a free method for one step checkouts.

Though it still has a problem when you want to select a payment method, because it doesn’t refresh the review summary. This is feature is vital for payment methods that add service fee. Thanks to this plugin I found a code workaroud.

Just enable jQuery $j and add the following code in the checkout process (onepagecheckout.phtml):

$j(function($) {
      $j('input[name*="payment[method]"]').live('click', function() {
              checkout.update({
                    'review': 1,
                    //,'shipping-method': 1
                    'payment-method': 1
              });

             setTimeout(function(){
                        checkout.update({
                            'review': 1
                            //'payment-method': 1
                        });
             }, 5000);
      });

      $j('input[name*="shipping_method"]').live('click', function() {
              checkout.update({
                    'review': 1
                    ,'payment-method': 1
                    //'shipping-method': 1
              });
             setTimeout(function(){
                        checkout.update({
                            'review': 1,
                            //'payment-method': 1
                        });
             }, 500);
        });
	});

Now IWD One Step checkout works with payment methods with service costs, because the review/summary is refreshed.

Having too much problems with IWD, than just try OneStepCheckout.