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.

Multiship Custom Shipping Question

sparkwebsparkweb Member, Integration Developer, FoxyShop, Order Desk
in Help edited August 2011
I'm trying to do an advanced multiship integration for a client.

Will have live rates and if there are more than three items in the cart and we are in the US, I want to change the Media Mail option to free shipping. This is fairly straight-forward except that this is a multi-ship store and the existing code doesn't seem to play well with that. Here's what I would *like* to do:
free_shipping_quantity = 3;
total_quantity = fc_json.product_count;
current_country = somehow_get_current_country_code();
if (total_quantity >= free_shipping_quantity && current_country == "US") updateShippingOptionCost(29, 0);

@fc_adam, any suggestions on how to adapt the shipping customization code to fire on the live rate ajaxcomplete for every multi-ship address?
Comments
  • fc_adamfc_adam FoxyCart Team
    @sparkweb, could you link me to your store for this one?

    I'm not sure if you could easily hook into the current multiship that's being updated, but you could just look through each multiship group in the ajaxcomplete method and update each one.

    So loosely like so:
    for (m in multishipgroups) {
    // run your code here, accessing the multiship options using [m]
    }
    

    make sense?
Sign In or Register to comment.