Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

E-Commerce Modules

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba, simon_w

Trigger a refresh of current order when billing country changes


Reply

641 Views

Avatar
PapaBear

17 February 2010 at 2:42pm Community Member, 26 Posts

Hi all,

We have a client with a simplified e-commerce system based around the e-commerce module. In the order form on the Checkout Page is a "Shipping Destination" field which is intended to be used to calculate the weight based freight charge for the order.

How can I trigger a refresh of the freight field in the order and in the display when the customer changes the Shipping Destination field in the order form. I'm guessing some form of custom client-side validation is required but I'm at a loss how to implement this.

I would prefer the displayed order details changed on the fly but if I have to save the partially completed details and trigger a page refresh then that will be ok too.

Can anyone offer some suggestions or code from a similar requirement?

Cheers
James.