The Foxy forums are on the move!

We're in the process of moving our forums over to a new system, and so these forums are now read-only.
If you have a question about your store in the meantime, please don't hesitate to reach out to us via email.

Dynamically change the origination zipcode?

vossavantvossavant Member
in Help edited August 2010
Another doozy...

Is it possible to alter the origination zipcode? I'm guessing that live shipping rates are calculated by taking the store zipcode (in store settings) and the customer zipcode plus the product weight.

This works great if the store ships from a single location. In our case, the product will ship from multiple vendors scattered around the country. Is it possible to tell FoxyCart on a per order (better yet...per product) basis what the origination zipcode is? This would involve overriding the default store zipcode with a passed in value.

Hope that makes sense...JavaScript hackery solutions are welcome.
  • lukeluke FoxyCart Team
    Are you doing subscriptions with shippable products? if not, you should be able to adjust the values in the checkout as needed via JavaScript by inspecting the cart JSON. Do a view source on the checkout page and you'll see what's available. Here are the values you'll probably want to mess with:
    Question: how do you plan on handling the situation where the cart has products from both multiple vendor/fulfillment companies? Running another shipping calc with different values (check the calls to api_json.php in checkout.js) might be possible, though it would be tricky. You could also dynamically add an extra handling fee or something.

    Either way, you have a lot of options. Please let us know how it goes or if we can help further.
Sign In or Register to comment.