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
    Location
    Arizona
    Posts
    27,835
    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

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    5,646
    Plugin Contributions
    53

    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. Shoppingcart question
    By arbmil in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 29 Nov 2011, 06:34 PM
  2. 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
  3. Whats wrong with my add_cart code?!
    By enigmabomb in forum General Questions
    Replies: 3
    Last Post: 1 Feb 2008, 11:58 PM
  4. Shoppingcart layout
    By lexz in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 10 Feb 2007, 04:21 PM
  5. class shoppingCart
    By David Bo in forum General Questions
    Replies: 2
    Last Post: 6 Feb 2007, 05: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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR