Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2010
    Posts
    32
    Plugin Contributions
    0

    help question shoppingCart->add_cart quantity?

    I'm writing a modification where I add products to the shoppingCart with add_cart function. However, in a case where there is already one product with the same id, the product is not added, but the amount remains 1.

    Debugging the code it seems that add_cart calls update_quatity, which updates the quantity to 1.

    Is the correct way to use add_cart when adding the new product really add_cart($products_id, $number_of_exising+1) ?

    To me this is not logical and not in line with the comments in the source file...

  2. #2
    Join Date
    Aug 2005
    Posts
    26,503
    Plugin Contributions
    9

    Default Re: shoppingCart->add_cart quantity?

    That is not how a stock install works as it increments the quantiyu
    Zen-Venom Get Bitten
    Get Your Business Found

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    3,314
    Plugin Contributions
    31

    Default Re: shoppingCart->add_cart quantity?

    Are your products defined with a "Product Qty. Maximum" value? It sounds like they might be defined with a maximum of 1 ...

 

 

Similar Threads

  1. How do I pass attributes to add_cart?
    By audleman in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 9 Jul 2009, 02:06 PM
  2. Whats wrong with my add_cart code?!
    By enigmabomb in forum General Questions
    Replies: 3
    Last Post: 1 Feb 2008, 11:58 PM
  3. class shoppingCart
    By David Bo in forum General Questions
    Replies: 2
    Last Post: 6 Feb 2007, 05:56 PM
  4. shoppingcart heading in CSS?
    By RC-Hobby4U in forum Basic Configuration
    Replies: 1
    Last Post: 4 Jan 2007, 10:56 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •