Dolphin Cart Beta - Errors
From FMWebschool Reference
Please use this page to document any errors or bugs that you encounter within the system. We will be adding comments and resolutions as the errors are investigated and fixed.
Back to main Dolphin Cart page
Contents |
[RESOLVED] Setting Shipping Location on Empty Cart - Fatal Error
When viewing the cart if you set the shipping location with out any items in the cart you get the following error:
Fatal error: Call to a member function setField() on a non-object in /www/fmwebschooliwp/fmstudio/dolphincart/lib/FMWebschool/classes/cart.class.php on line 109
Resolution
Thank you Thecrow for finding and reporting this bug, the cart object was indeed not being initialized and setting a location property failed. I have modified the code and it should now be fixed. Please test and comment. --Michael Petrov 10:58, 20 July 2007 (PDT)
[RESOLVED] Shopping Cart View - Error on "Update Cart" with 0 items
- I clicked on update cart whilst I didnt have anything in it and it produced the following errors
Notice: Undefined index: qty in /www/fmwebschooliwp/fmstudio/dolphincart/lib/FMWebschool/classes/cart.class.php on line 137
Warning: Invalid argument supplied for foreach() in /www/fmwebschooliwp/fmstudio/dolphincart/lib/FMWebschool/classes/cart.class.php on line 137 -- Jalz
Resolution
Thank you Jalz for reporting this issue. I have first fixed the actual error (by adding extra error checking to the update operation) and then replaced an empty cart with a friendly "empty cart" message (stored in the database as an internationalized string). Please check it out and comment! --Michael Petrov 11:54, 20 July 2007 (PDT)
Yes Michael, that works a treat now!
[RESOLVED] Decimal Amounts within Quantity Items
Another bug I have found is the cart seems to accept decimal quantity amounts and adjust the price accordingly. I think it would be best to keep quantity numbers whole -- Jalz
- "I would like 0.75 of your FMStudio product, I don't need the edit functionality" --Michael Petrov 14:28, 20 July 2007 (PDT)
Resolution
Thank you so much Jalz for reporting another bug, it is now fixed. Your current shopping cart will not be automatically fixed but trying to update the quantities will reset them to the integer part of the number. (2.65 becomes 2) --Michael Petrov 14:28, 20 July 2007 (PDT)

