Hello! It looks like there is an issue on cart.php, at the elseif ($quan == 0). Once this was implemented, if you type gibberish (like "fdsa") instead of an integer, it just removes the item from the cart. It never goes to the else with $out telling you it has to be a positive integer. PS: looks like that can be fixed by changing == to ===, like ($quan === 0). I tested that pretty thoroughly; seems to work well.
Hello! It looks like there is an issue on cart.php, at the elseif ($quan == 0). Once this was implemented, if you type gibberish (like "fdsa") instead of an integer, it just removes the item from the cart. It never goes to the else with $out telling you it has to be a positive integer.
PS: looks like that can be fixed by changing == to ===, like ($quan === 0). I tested that pretty thoroughly; seems to work well.