Hi Luke,
I think it may be a "bug" kind of?
It appears that there is code to take into account that an item may disappear from stock while a user is shopping.
So they load the product page when the item is in stock and then when they go to add the item to the cart it throws the object error.
1. To test this I went into when into a product page and selected the required attributes.
2. I then went into the SQL server and set the quanities to 0 for the product and its attributes.
3. Back to the product page and clicked add to cart and received the object error.
When I debug, the first time every thing loads and the product object is loaded and everything works fine, it's only in the redirect that I am getting the error.
I have been chasing this for a bit, but since you wrote the original code it may pop right out at you?
Thanks,
Tom Usselman
|