Skip to content

Commit

Permalink
Fixes specific case of customised checkout button
Browse files Browse the repository at this point in the history
  • Loading branch information
harshilmathur committed Jul 22, 2015
1 parent 7ec9216 commit c9cac81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/code/community/Razorpay/Payments/Block/Redirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ function razorpaySubmit(){
";

$js .= 'var checkoutOrderBtn = $$("button.btn-checkout");
if(checkoutOrderBtn.length == 0) checkoutOrderBtn = $$("button:contains(\'Place Order\')");
checkoutOrderBtn[0].removeAttribute("onclick");
checkoutOrderBtn[0].observe("click", razorpaySubmit);
Expand Down

0 comments on commit c9cac81

Please sign in to comment.