Jump to content

Adding product to newly created cart fails


Recommended Posts

Hello, i'm trying to add a product to a newly created cart with a method I found somewhere on these forums, it mentioned using the function $cart->updateQty();

but for some reason it just fails, it outputs no error message and no exception to catch, even the debugger just disconnects when it gets to this line.

i'm calling it like this:

$cart->updateQty($prod['qty'], (int)$prod['id']);

what am I doing wrong?

 

Thanks in advance, Asaf

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...