Customer being charged for shipping when making changes to subscription

in Help edited December 2014
Good morning friends.

I have an issue where customers are charged $6 shipping (our shipping charge) every time they make a change to their subscription, regardless of whether something was actually purchased or not.

Store: healthkismet.foxycart.com

Any ideas why this is?
Comments
  • fc_adamfc_adam FoxyCart Team
    @JonathanBechtel,

    This relates to the fact that you're setting a custom shipping rate in the javascript, and it not properly being cleared as a future shipping rate in situations where there is only future costs.

    Try updating your javascript that is setting the flat rate cost like this:
    jQuery(document).ready(function() {
      if (fc_json.total_item_price == FC.checkout.config.futureActualTotalPrice) {
        FC.checkout.config.orderFutureShipping = FC.checkout.config.orderShipping;
      } else {
        FC.checkout.config.orderFlatRateShipping = 6;
      }
      FC.checkout.updateShipping(-1);
    });
    

    That will check if the future costs in the cart is the same as the total cost of the cart, and make the future shipping match the shipping already set, otherwise it sets it as normal.
Sign In or Register to comment.