diff --git a/themes/site/order-payment.tpl b/themes/site/order-payment.tpl index 1ccf463e..73f16c34 100755 --- a/themes/site/order-payment.tpl +++ b/themes/site/order-payment.tpl @@ -42,6 +42,11 @@ alert(paiementErrorMessage); } if ($input.val()) { + // LOADER POUR PAYBOX + if ($input.attr('data-module-name') == "paybox"){ + $('.overlay_bbb').fadeIn(); + $('.box_paybox').fadeIn(); + } // redirect by GA send event onStepComplete(4, $input.attr('data-module-name') ,$input.val(),null); } else { @@ -49,9 +54,6 @@ if ($input.attr('data-module-name') == "paypal") { $('.overlay_bbb').fadeIn(); $('.box_paypal').fadeIn(); - } else if ($input.attr('data-module-name') == "paybox"){ - $('.overlay_bbb').fadeIn(); - $('.box_paybox').fadeIn(); } $form = $input.parent().children('div.hidden').children('form'); // submit form by GA send event