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?
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?
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.
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
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.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.