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
Can you pass shipping method through the more info page?
-
- Posts: 111
- Joined: Sun Aug 06, 2006 10:05 am
- Location: LaGrange, GA
- Contact:
Can you pass shipping method through the more info page?
Brandon Eley
[i]Certified ShopSite Designer[/i]
[i]Certified ShopSite Designer[/i]
-
- Posts: 2572
- Joined: Fri Aug 04, 2006 12:02 pm
- Location: Anywhere
- Contact:
-
- Posts: 111
- Joined: Sun Aug 06, 2006 10:05 am
- Location: LaGrange, GA
- Contact:
-
- Posts: 2572
- Joined: Fri Aug 04, 2006 12:02 pm
- Location: Anywhere
- Contact:
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
-
- Posts: 11
- Joined: Tue Aug 29, 2006 10:10 am
- Location: Denver, CO