Add Multiple SKUs to cart via order anywhere

General ShopSite user discussion

Add Multiple SKUs to cart via order anywhere

Postby xylemdesign » Tue Mar 03, 2015 4:21 pm

Hello,

I have a site that is operating using the add anywhere buttons. Is there a way to make it so you can add multiple SKUs to the cart using only one order anywhere form? It looks like there is a way doing it through the templating system but unfortunately we can't use it.

Thanks,
xylemdesign
xylemdesign
 
Posts: 28
Joined: Mon Mar 17, 2014 9:36 am

Re: Add Multiple SKUs to cart via order anywhere

Postby loren_d_c » Tue Mar 03, 2015 5:10 pm

Yes. If your OrderAnywhere button is form-based, just combine the itemnum values (or sku values, if you're adding by sku instead of itemnum) into one form. You can have separate hidden form fields for each itemnum, or you can combine them all in one itemnum field separated by commas.

Code: Select all
<input type="hidden" name="itemnum" value="123">
<input type="hidden" name="itemnum" value="456">
<input type="hidden" name="itemnum" value="789">


or

Code: Select all
<input type="hidden" name="itemnum" value="123,456,789">


-Loren
Last edited by loren_d_c on Wed Mar 04, 2015 10:14 am, edited 1 time in total.
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Re: Add Multiple SKUs to cart via order anywhere

Postby xylemdesign » Wed Mar 04, 2015 8:49 am

Thanks Loren, I got the latter option to work and it was exactly what I needed.
xylemdesign
 
Posts: 28
Joined: Mon Mar 17, 2014 9:36 am


Return to User Forum

Who is online

Users browsing this forum: No registered users and 138 guests

cron