• Resolved Dan Miller Coding

    (@danmillercoding)


    There’s an error that doesn’t allow you to add the maximum number of items in stock.
    If the stock is 12 items, then you can only increase the quantity till 11.

    if ( max ) {
    	var temp = parseInt( qty.value ) + parseInt( step );
    	if ( temp < parseInt( max ) ) {
    		qty.value = temp;
    	}
    }

    should be

    if ( max ) {
    	var temp = parseInt( qty.value ) + parseInt( step );
    	if ( temp <= parseInt( max ) ) {
    		qty.value = temp;
    	}
    }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[BUG] Can’t add the max number of items in stock’ is closed to new replies.