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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba

Trigger a refresh of current order when billing country changes


Go to End


1268 Views

Avatar
PapaBear

Community Member, 26 Posts

17 February 2010 at 2:42pm

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.