Can you pass shipping method through the more info page?

General ShopSite user discussion

Can you pass shipping method through the more info page?

Postby beley » Mon Oct 02, 2006 10:38 am

I have a script on a more info product page that will let a customer select which date they want an item to arrive. I'd like to pass the actual date through to a order instructions box and pass the proper shipping method (depends on the date they want it) to the shopping cart as well.

Is there any way to pass a variable to the shopping cart that will set the default shipping method or add shipping charges?

Thanks
Brandon Eley
Certified ShopSite Designer
beley
 
Posts: 111
Joined: Sun Aug 06, 2006 10:05 am
Location: LaGrange, GA

Postby loren_d_c » Mon Oct 02, 2006 11:33 am

No, shipping method and additional shipping costs are not something that can be passed as additional parameters when a product is added to the cart.

-Loren
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Postby beley » Mon Oct 02, 2006 12:33 pm

Is it possible to restrict shipping methods by product (for instance, require a specific product to use either 2nd or next day and not ground)?
Brandon Eley
Certified ShopSite Designer
beley
 
Posts: 111
Joined: Sun Aug 06, 2006 10:05 am
Location: LaGrange, GA

Postby loren_d_c » Mon Oct 02, 2006 1:40 pm

There is no ShopSite feature to do that, but you might be able to do it in Pro with JavaScript, by adding custom JavaScript to the Commerce Setup -> Order System -> Checkout setting labeled 'Javascript added at start of built-in CheckIt function' that would check the contents of the cart (using the ShopSite JavaScript Variables feature) then checking that against the shipping menu value to make sure that you if any of your special products are in the cart they have selected the proper shipping and if not don't let the shopper continue to checkout and put up a JavaScript alert telling them they have products in the cart that require a different shipping selection.

-Loren
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Postby websitewerx » Tue Oct 03, 2006 11:48 am

The javascript could also go one step further and select the correct shipping type and send them on to the checkout screen, so the customer doesn't have to do anything but click "Ok".
websitewerx
 
Posts: 11
Joined: Tue Aug 29, 2006 10:10 am
Location: Denver, CO


Return to User Forum

Who is online

Users browsing this forum: No registered users and 123 guests