crown
19th June 2007, 10:23 AM
Hi,
We have an intermittent problem with the viewcart.htm page that causes the display of the cart to fail.
Sometimes, when the user chooses to buy an item and proceeds to view their cart, the rendering of the cart stops after the Back/Home buttons. Neither the contents of the cart, nor the Recalculate and Proceed buttons are displayed. As far as I can determine, this only happens to returning customers, and may be further restricted to returning customers who still have content in the cart cookie.
On Internet Explorer, the page shows an error at the bottom of the page complaining of 'null' (my apologies for not copying the full error message). Firefox records an error message saying that getProduct(pid) is null.
My company has used eziMerchant for a number of years, but I don't think they've noticed the problem until recently when customers began calling describing this issue.
Since the issue was first reported to us, I have upgraded eziMerchant to the latest version, and created a new skin for the shop. I spent some time in a Javascript debugger for a start, then I found that the version we had was years out of date so I stopped in the hope that this bug had been fixed. No such luck.
When debugging, it appeared that there was a product in the cart that didn't appear in the Javascript inventory, with an ID of 255. I'm not sure if this is a -1 value that has overflowed. Either way, it appears that if there is an item in the cart that is not in the inventory, the cart will fail to display.
I am not sure if this manifests itself because there is a value hanging around in a cookie or because the browser hasn't managed to download the updated product inventory Javascript files.
Either way, if any of the above makes sense I'd appreciate any help you can provide.
Many thanks,
James Telfer
Crown Content
http://www.crowncontent.com.au/shop/
We have an intermittent problem with the viewcart.htm page that causes the display of the cart to fail.
Sometimes, when the user chooses to buy an item and proceeds to view their cart, the rendering of the cart stops after the Back/Home buttons. Neither the contents of the cart, nor the Recalculate and Proceed buttons are displayed. As far as I can determine, this only happens to returning customers, and may be further restricted to returning customers who still have content in the cart cookie.
On Internet Explorer, the page shows an error at the bottom of the page complaining of 'null' (my apologies for not copying the full error message). Firefox records an error message saying that getProduct(pid) is null.
My company has used eziMerchant for a number of years, but I don't think they've noticed the problem until recently when customers began calling describing this issue.
Since the issue was first reported to us, I have upgraded eziMerchant to the latest version, and created a new skin for the shop. I spent some time in a Javascript debugger for a start, then I found that the version we had was years out of date so I stopped in the hope that this bug had been fixed. No such luck.
When debugging, it appeared that there was a product in the cart that didn't appear in the Javascript inventory, with an ID of 255. I'm not sure if this is a -1 value that has overflowed. Either way, it appears that if there is an item in the cart that is not in the inventory, the cart will fail to display.
I am not sure if this manifests itself because there is a value hanging around in a cookie or because the browser hasn't managed to download the updated product inventory Javascript files.
Either way, if any of the above makes sense I'd appreciate any help you can provide.
Many thanks,
James Telfer
Crown Content
http://www.crowncontent.com.au/shop/