Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 VP-ASP 6.50 Features and Facilities
 adding multiple products to cart?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

twopigs
Starting Member

USA
11 Posts

Posted - March 23 2007 :  09:43:58  Show Profile  Visit twopigs's Homepage  Reply with Quote
Hello, this is my first post! I am setting up vpasp (6.50) for a client and of course they need some customization. I'm not sure if this can be done. I currently have a search that will bring all products back for a vehicle (motorcycles) and I added the "shopaddtocart.asp" link which works fine. My question is would I be able to make a form on my page (which is outside of vpasp) to gather everything they checked, and send it all over to the shopping cart. so far I can just add one Example: catalogid=415&quantity=1
So it would need to take for example:
catalogid=415&quantity=1
catalogid=422&quantity=1
catalogid=854&quantity=1
catalogid=223&quantity=1
catalogid=921&quantity=1
catalogid=315&quantity=1

and they click "add all checked items to cart. I'm assuming this will be custom if at all doable?
Thanks in advance for any help!
Scott

devshb
Senior Member

United Kingdom
1904 Posts

Posted - March 23 2007 :  19:07:11  Show Profile  Visit devshb's Homepage  Reply with Quote
it's possible to do that; what you can try is to switch on the productselect config option (which allows you to tick multiple products on the shopdisplayproducts.asp pages), and then do a view-source when displaying more than one product on shopdisplayproducts.asp; from that point you can see what the form tags and field names should be that can then get posted to shopaddtocart.asp

Another possibility could be to have something like this:
http://www.bigyellowzone.com/byz_quickorder.asp
but that's only relevant if your customers know the product codes
example product codes to try that out with are:
BYZ001
BYZ005
BYZ033

Simon Barnaby
Developer
[email protected]
www.BigYellowZone.com
Web Design, Online Marketing and VPASP addons
Go to Top of Page

twopigs
Starting Member

USA
11 Posts

Posted - March 26 2007 :  16:08:15  Show Profile  Visit twopigs's Homepage  Reply with Quote
Thanks Simon, I will give that a try! I appreciate the help! I'll let you know how it goes. :)
Go to Top of Page

seeker1
VP-CART New User

Australia
114 Posts

Posted - March 26 2007 :  16:32:22  Show Profile  Visit seeker1's Homepage  Reply with Quote
Here is a simple form that adds multiple items to the cart. The information could be on query strings also.

<form name=testform method=Post action=shopproductselect.asp>
<input type=hidden name="quantity" value="2">
<input type=hidden name="quantity" value="1">
<input type=hidden name="processed0" value="7">
<input type=hidden name="processed1" value="8">
<input type=hidden name="prodindex" value="10">
<INPUT type=submit VALUE="Submit" name="Submit">
</form>

shopproductselect.asp handles multiple adds
Quantity is quantity for each product
Processed0 the value is catalogid for first product
processed1 the value is catalogid for next product
prodindex is maximum number of products (can be larger than really adding)

Howard Kadetz
www.hkprog.com
Visit us for a range of VP-ASP products including the all new Guide to VP-ASP manual
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00