Skip to content

Commit

Permalink
Console error log fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ChetanGN committed May 12, 2022
1 parent 2ea2efb commit 346046c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/rzp-pdp-checkout-btn.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ class="button alt single_add_to_cart_button"

jQuery('.qty').on('change',function(e)
{
let i = 0;
let x = 0;
while (typeof quantity === 'undefined') {
var quantity = document.getElementsByClassName("qty")[i].value;
i++;
var quantity = document.getElementsByClassName("qty")[x].value;
x++;
}
btnPdp.setAttribute('quantity', quantity);

Expand Down

0 comments on commit 346046c

Please sign in to comment.