Multiple add to cart with options

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Multiple add to cart with options

Post by jmestep » Thu Mar 05, 2009 11:14 am

I've adapted code from various Able pages to allow purchase of products with options with one add to cart button. It works fine on a category page.
Now I need to change it so that customer can enter a sku and quantity for any product.
I would like to have it where there are ten rows in the grid (the control is using a repeater for the products) with a text box on each row and after the sku is entered the product name and options are retrieved and the options can them be entered and the quantity.
Or a grid where the first sku is entered, those options/quantity selected and when that is done, a new line shows up for the next product.
Do you have any advice on the best way to go about this, including maybe switching to a different type of data display control if necessary?
Thanks
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

sdlong02
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 95
Joined: Mon Jan 19, 2009 2:33 pm

Re: Multiple add to cart with options

Post by sdlong02 » Thu Mar 05, 2009 6:44 pm

I'm not familiar with the coding side itself, but the function of what you're trying to create sounds like what the Admin side uses for creating an order when adding SKU's to an order. Maybe you could adopt the code from that to what you're trying to create.

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Multiple add to cart with options

Post by jmestep » Fri Mar 06, 2009 5:16 am

Thank you! I've been trying to think of where in Able there would be similar code, so I'll look at that.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

webhead
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 32
Joined: Sun Aug 24, 2008 2:01 pm

Re: Multiple add to cart with options

Post by webhead » Mon Mar 09, 2009 10:09 am

Judy, all the code you need to do that is right there in the quick order plugin I wrote for web2market. Its all able code and nothing custom other than the html that is renders. Trying to use the microsoft data controls is not always a good idea, any many times a really bad idea, you will spend more time trying to get the control to work than just simply writing out the html you need, and handling the post back to the server. Spend some time and really look at it, its trivially easy.
Steve Portock

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Multiple add to cart with options

Post by jmestep » Mon Mar 09, 2009 12:37 pm

Thank you for your input, webhead. We are having to re-do the quick order because the code didn't save the Sku modifier to the basket, didn't match the correct quantities with the corresponding skus and broke when we upgraded a site to Able 7.0.2. The code we are doing will fix those issues and will not break upon upgrade.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

webhead
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 32
Joined: Sun Aug 24, 2008 2:01 pm

Re: Multiple add to cart with options

Post by webhead » Mon Mar 09, 2009 7:15 pm

Sounds more like not being able to understand the code, that code worked perfectly. In fact I will post this code for free.
Steve Portock

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Multiple add to cart with options

Post by jmestep » Wed Mar 11, 2009 1:48 pm

I got the new QuickOrder page to work now with some added features. Picking up the changes in the option dropdowns could be handled as Able did some of the code in CategoryGrid3.aspx- bind on the PreRender if the add to cart button had been clicked.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

Post Reply