However that button only works if all the products are in the same section, so you'd have to make a section (a hidden one perhaps) that contain all such products.
Thats what I was going to suggest before Norman pointed out the Single Add To Cart. If you use <iframe style="display:none"></iframe> the frame remains hidden, and you can use JS to loop through your list of products and set the src property of the iframe to your cgi-bin url each time. You'd probably need to set a delay for each iteration of the loop to give the CGI script enough time to register the product.
Not if they're in different sections. The Perl looks for and requires a SID=1 type value so that it can locate the appropriate datafile (e.g. A0001.cat) containing product details.
I posted recently regarding some Perl mods to allow adding to cart by product reference (without knowing the SID). This was intended to allow someone to enter a ref and add it straight to cart. That might possibly be extended to allow multiple adds from different sections. It was only a week or so ago so should be easy to locate.
UPDATE
The above was posted while Graham was writing his reply. It's to do with a single URL containing multiple cart items, not an IFRAME solution.
1, iframes (small ones)
2, drop downs
3, the button passes the url, one box per frame, adding the items to the cart.
4, after 2 seconds waiting the cart is displayed (for viewing only)
5, all items are added
6, I get slapped on the wrist for clumsy kludge code.
---------------------
<SCRIPT LANGUAGE="JavaScript">
function multiResults (form) {
var FirstVar = form.select1.value;
var SecondVar = form.select2.value;
var ThirdVar = form.select3.value;
Comment