simplyclesha Posted June 2, 2006 Share Posted June 2, 2006 (edited) Hello. I'm having a problem figuring this one out. When I try to update the quantity in the cart I get this error message: Warning: Illegal offset type in /home/xxx/catalog/includes/classes/shopping_cart.php on line 169 Fatal error: Unsupported operand types in /home/xxx/catalog/includes/application_top.php on line 393 Lines 168-174 catalog/includes/classes/shopping_cart.php function get_quantity($products_id) { if (isset($this->contents[$products_id])) { return $this->contents[$products_id]['qty']; } else { return 0; } } Lines 393-396 catalog/includes/application_top.php $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id'])) + $HTTP_POST_VARS['cart_quantity'], $HTTP_POST_VARS['id']); } } I tried searching the board & google and I did a few things that I think of to get it to work. The end result of my tweeking shut down the entire shop with another error message. Edited June 2, 2006 by simplyclesha Quote Thanks! Clesha Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.