Jump to content
Larry Ullman's Book Forums
Sign in to follow this  
daviddawn

Can't Add A Product To The Cart - It Just Increase The Quantity!

Recommended Posts

HI All,

 

been stuck on this for some time now, I rearranged my database by replacing the "product_type" and "product_id" columns for a "sku" column and altered the stored procedure to accept the "sku" and "uid" arguments, I also corrected the scripts to send these arguments to the stored procedures respectivley.

 

however rather than a new seperate product being added it just adds another to the quantity with an increment of 1, i can see all the different sku numbers for different products in the url, but not sure why the stored procedure is not accepting this!

 

any help would be appreciated!

 

many thanks :@)

Share this post


Link to post
Share on other sites

I Figured it out!

 

Don't use an argument name "sku" when passing to a stored procedure, which is the same name as a column "sku" in the database.

 

little mistakes !!!

Share this post


Link to post
Share on other sites

Apologies for not getting to you earlier, but kudos for figuring it out and thanks for sharing your solution!

Share this post


Link to post
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.
Note: Your post will require moderator approval before it will be visible.

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.

Loading...
Sign in to follow this  

×
×
  • Create New...