select multiple products and one click add to cart?

General ShopSite user discussion

select multiple products and one click add to cart?

Postby kayo » Tue Dec 16, 2008 10:49 am

We're looking to setup text input fields where user can enter the product number (SKU) and the quantity - but do this multiple times on the same page - and then hit add to cart and all the products and quantities flow to the cart.

We've tested this some and have had trouble. We notice that the "itemnum" field shopsite uses is not the same as the SKU for the product - which is how customers know the product.

Anyways - this is what we have:

<FORM action="http://www.bodypoint.com/cgi-bin/sc/order.cgi" method=post>
<input type=hidden name="storeid" value="*20d8b9595800314470f102ed726d96adb636">
<input type=hidden name="dbname" value="products">

<input type=text name="itemnum"> <input type=text size=2 name="qnty">

<input type=submit value="Add to Cart">
</form>

Can we have multiple rows of these fields or does shopsite get confused because the 'itemnum' can only handle one product at a time?

Any work arounds?

thanks,

kris
kayo
 
Posts: 18
Joined: Fri Jan 19, 2007 10:20 am

Postby Jim » Tue Dec 16, 2008 1:27 pm

This requires a custom page and a custom product template. You can see an example of how to do it in the help at
http://www.shopsite.com/help/10.0/en-US ... i-add.html
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby gentlemans01 » Mon Jan 05, 2009 7:49 pm

We use a reformatted version of that script in our store for complete outfits:

http://www.gentlemansemporium.com/store/vict_mens_25.php

Works like a charm!

-Chris
Chris
https://www.historicalemporium.com
gentlemans01
 
Posts: 40
Joined: Sun Aug 27, 2006 11:32 pm


Return to User Forum

Who is online

Users browsing this forum: No registered users and 122 guests