Can you pass shipping method through the more info page?

General ShopSite user discussion
Post Reply
beley
Posts: 111
Joined: Sun Aug 06, 2006 10:05 am
Location: LaGrange, GA
Contact:

Can you pass shipping method through the more info page?

Post by beley »

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
[i]Certified ShopSite Designer[/i]
loren_d_c
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere
Contact:

Post by loren_d_c »

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
beley
Posts: 111
Joined: Sun Aug 06, 2006 10:05 am
Location: LaGrange, GA
Contact:

Post by beley »

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
[i]Certified ShopSite Designer[/i]
loren_d_c
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere
Contact:

Post by loren_d_c »

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
websitewerx
Posts: 11
Joined: Tue Aug 29, 2006 10:10 am
Location: Denver, CO

Post by websitewerx »

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".
Post Reply