Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Call to undefined function: generate_cart_id()


Recommended Posts

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 by simplyclesha

Thanks!

Clesha

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...