Stock Cart Lab Part 5 - Update the Cart & Cleanup

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024

Комментарии • 1

  • @StudioReigh
    @StudioReigh 4 года назад

    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.