I’m having an odd problem that I don’t quite understand the origin nor solution for.
Everything is working just as the examples step us through in the book, but as I like to take things a little further sometimes I’m experimenting with testing boundaries.
I have 7 unique products created in the database.
I can select any combination of these itesm to add to the cart, only up until the cart contains 5 items.
After that point, my console log indigates I’m getting a HTTP error of 500: “POST /store/add_to_cart/4 HTTP/1.1” 500 60
and nothing is added to the cart.
Or whatever number id of the item I had just attempted to add to the cart.
It’s stumping me because it happens no matter the order I add items, and just breaks at 5. (Edit: I found an order that actually causes it to break after 4 items. Which makes this stranger. It also means that it must be something about the way I’ve entered items I think.
If I’ve missed something from the book, or if any of you have had this issue, please let me know.