Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2005
    Posts
    189
    Plugin Contributions
    0

    Default adding same product twice to shopping cart ...

    Hello,

    I would like to configure the add of products into the shopping cart, so that when the same product is choosen more than once, zencart doesnt add the quantity, but keeps each addition as a separate line item.

    For example, if the customer does the following:

    Add product A, quantity 200
    Add product A, quantity 300

    the resulting cart should have two items and *not* Product A, quantity 500.


    Can this be configured?


    thank you,

    Daniel

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: adding same product twice to shopping cart ...

    Zen Cart doesn't work that way ...

    Unless there are attributes and the combo of attributes is different, the quanties are combined when in the cart ...

    Why would you want to add 100 of Product A and 50 of Product B and 150 of Product A and see in the cart:

    100 Product A
    50 Product B
    150 Product A

    versus the normal way of:

    250 Product A
    50 Product B
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Sep 2005
    Posts
    189
    Plugin Contributions
    0

    Default Re: adding same product twice to shopping cart ...

    Hello Ajeh,

    Thank you for your prompt response.

    The reason is the following:

    The store will sell personalized booklets, where the cover of each booklet order can be customized. Customization is done by an external application i am writing, basically a mini cover design editor. This is because the attribut options entry methods are not sufficient to gather the graphcial information required.

    The problem is that although within ZenCart each additional booklet order placed in the shopping cart appears the same, externally, each gets a different cover design assigned. To accomplish that I introduced a small change in the shipping_cart class, which adds a custom string into one predefined product attribute.


    Unforunately, the add routine doesnt get called when zencart treats adding a product as a "change request" ... when a change routine in the shopping cart class is called, orders are already treated as combined.



    thanks,

    Daniel

    p.s i guess i need to do more research to see where exactly zencart identifies that an add product request should be treated as changing an existing order in the shopping cart, and make attribute change already there.

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: adding same product twice to shopping cart ...

    If you were using Text attributes ... they could fill in something to distinguish each one ... and that would make each entery to the cart unique ... so you could have multiple entrees for the same products_id ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Sep 2005
    Posts
    189
    Plugin Contributions
    0

    Default Re: adding same product twice to shopping cart ...

    Hello Ajeh,

    Thank you for your reply. It turns out that i have done exactly that :-)

    Basically, i have added a text attributes to the product whose purpose is to index external information. I have then noted the name of that attribute, and placed it into a constant. Finally, i have added a short line of code in the attributes.php module, which checks the following field for that constant, when associated html code is generated.

    ($products_options_names->fields['products_options_name']

    If its found then i generate own html code that fills in required indexing data, as well as makes the input field hidden.


    appears to work (so far) :-)


    thank you,

    Daniel

 

 

Similar Threads

  1. Replies: 6
    Last Post: 26 Aug 2009, 06:49 AM
  2. Same product sold twice
    By Fetsy in forum General Questions
    Replies: 2
    Last Post: 6 May 2009, 11:50 AM
  3. product appear twice in the same category
    By mipavluk in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 2 Apr 2009, 02:12 AM
  4. Shopping Cart Increased Quantity v New Order Same Product
    By ALFO in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 7 Aug 2008, 07:57 AM
  5. Product Information displayed twice in shopping cart
    By der_redakteur in forum General Questions
    Replies: 3
    Last Post: 18 Jun 2008, 11:38 PM

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