Results 1 to 8 of 8
  1. #1
    Join Date
    Aug 2007
    Posts
    11
    Plugin Contributions
    0

    Default Adding multiple items to cart at once

    Perhaps I'm just no good with forum searches, but I have been looking for the past twenty minutes. My goal is to create a page with a list of specific items. This page will offer the user the ability to dynamically update the quantities of each item via a text box (I know, it's oh-so clever), and when the form is submitted it will be processed and add the chosen items to the shopping cart.

    I've looked through the Zen-Cart API and didn't notice any functions for manipulating the shopping cart in this manner, and the only forum topic I found even closely related is long dead and utterly uninformative.

    Is there any way for me to add more than one item to a shopping cart at once? Thanks in advance.

  2. #2
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: Adding multiple items to cart at once

    You mean kind of like the New Products listing?

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Adding multiple items to cart at once

    Zencart does this natively with the right admin settings, as long as the list you're talking about is a product list (Category, New, Featured, etc.).

  4. #4
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Adding multiple items to cart at once


  5. #5
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Adding multiple items to cart at once

    ... and yes... you can pre-populate the MODEL NUMBER field with selected model numbers - or have it blank as we do...

  6. #6
    Join Date
    Aug 2007
    Posts
    11
    Plugin Contributions
    0

    Default Re: Adding multiple items to cart at once

    I'm not sure if what I need is anything like the new products listing. I'm fairly inexperienced with Zen-Cart at this point.

    The issue is, the list would have to have custom header text (an introduction, of sorts), and would need some sort of validation in the form of checking the collective weight of products to ensure they meet a specific requirement (completely separate from the main cart) before allowing the selections to be added to the cart.

    What I need is to add the items to the cart with specific attributes, and it would seem almost necessary to me that there be a function for adding items to the cart already. Otherwise development would be pretty limited, no?

    I will check out that module, fairestcape. If anything it will at least give me a shove in the right direction. Thanks.

  7. #7
    Join Date
    Aug 2007
    Posts
    11
    Plugin Contributions
    0

    Default Re: Adding multiple items to cart at once

    from looking at the quick order module, it appears as though adding items to the cart is as simple as manipulating a session variable. now to find out exactly what all is stored in there!

  8. #8
    Join Date
    Aug 2007
    Posts
    11
    Plugin Contributions
    0

    Default Re: Adding multiple items to cart at once

    i'm not trying to flood my own thread, but apparently i can only edit my posts for 7 minutes after i make them (that's such an arbitrary restriction). anyway, it appears that the key of the array the product attributes are stored in is a salted md5 hash? does anybody have any insight into this?

 

 

Similar Threads

  1. Submit multiple items at once
    By Nkin in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 21 Mar 2011, 04:23 PM
  2. Multiple Items at once on Zen Cart
    By Hamov in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 28 Aug 2008, 01:39 PM
  3. Apply Tax Setting to multiple items at once?
    By SITM in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 0
    Last Post: 13 Aug 2008, 03:28 AM
  4. Changes to multiple items at once?
    By douglerner in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 6 Apr 2007, 02:15 PM
  5. Can I re-stock multiple items at once?
    By binny25 in forum General Questions
    Replies: 1
    Last Post: 20 Mar 2007, 11:23 AM

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