close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Multiple Quantities of the same product.

Thread began 10/02/2009 8:27 am by vjc111265867 | Last modified 10/07/2009 4:47 pm by Jason Byrnes | 1547 views | 3 replies |

vjc111265867

Multiple Quantities of the same product.

Have been trying to figure out a way to post different quantities of the same item to the cart from one product page. Is this possible or am I banging my head against the wall for no reason?

Sign in to reply to this post

Jason ByrnesWebAssist

Is this a product that has options? Such as different colors, or sizes? if this is the case, when you add the size or color column to the cart, set those columns to be unique, that will force item 1 in red to be a unique item from item 1 in blue.

Sign in to reply to this post

vjc111265867

They do have color options but...

They do have color options, though I am using an explode function to to get the colors fro a comma delineated filed in the database. they will go in the cart as seperate colors and I am trying to bring in the sizes from a separate table that only go with the particular item. I am using the "ecart get from recordset" behavior and check boxes to allow the user to select only the sizes they wish to order. I have given up trying to get multiple quantities in and let the user update in the cart. I can get one size into the cart but can't get multiple sizes in. I have made the size column in the cart unique. Trying to use data assist search function to filter the the size recordset. even though it says don't filter the record set and let the search behavior sort, if I do that, all the sizes from every time go into the cart. If I sort the size recordset by Item_Id, all the correct sizes come in but only one goes into the cart o matter how amany you check. Very frustrating. Have tried every combination of sorting, binding and recordsets that I can think of. Any help would be a greatly appreciated. Below is the code if it helps:

I'm attaching code

thanks vjc

Attached Files
shortsleeves.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

This is a limitation to the Multiple Item Add to Cart interface tutorial. that tutorial is geared twords adding multiple simple items to the cart. That is to say items that do not have options like color or size.


the Problem is this:
The Item ID is passed to the DataAssist Search server behavior to filter the recordset.

Once the recordset is filtered, the Add to cart from recordset behavior loops throughthe recordset to add each itme to the cart.

While looping through the recordset, it is impossible to also loop through the forms collection to match the appropriate Color or Size Select list with the item that is being added to the cart.

It is the same limitation that is causing the quantity not to work.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...