• Resolved JoeSz

    (@ujbeszel)


    Hi,

    I had some issue with checking the maximum quantity. I did solve it. You may want to change
    ( el_qty.val() >= maxStock ) ? incrementButton.hide() : incrementButton.show();
    to
    ( parseInt( el_qty.val() ) >= parseInt( maxStock ) ) ? incrementButton.hide() : incrementButton.show();

    Best Regards,

    JoeSz

    • This topic was modified 7 years, 2 months ago by JoeSz.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Quantity + – is incorrect, because it is compared as string’ is closed to new replies.