• Resolved iqqsam182

    (@iqqsam182)


    The current behaviour of woocommerce is that the shipping costs are updated when the customer has all fields entered (or at least city, address 1 and state for my scenario), this is problematic for my settings, is there any way to trigger the update shipping costs when ONLY billing state is modified?

    I have tried adding update_totals_on_change class to some field that didn’t help, I still have to enter both billing_city and billing_address_1 for the update to trigger.

    I also don’t want to hide costs until an address is entered.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • laceyrod

    (@laceyrod)

    Automattic Happiness Engineer

    Hi @iqqsam182

    Thanks for reaching out.

    is there any way to trigger the update shipping costs when ONLY billing state is modified?

    This would require more complex development. I’ll go ahead and leave this thread open for a while in case anyone else wants to chime in, but in the meantime, I can also recommend the following resources for more development-oriented questions:

    – WooCommerce Slack Community: https://woocommerce.com/community-slack/
    – Advanced WooCommerce group on Facebook: https://www.facebook.com/groups/advanced.woocommerce/

    I also don’t want to hide costs until an address is entered.

    If you navigate to WooCommerce > Settings > Shipping > Shipping Options, you’ll see an option to Hide shipping costs until an address is entered. You’ll want to make sure this is unticked. Also, on the General tab, you can change the default customer location to the Shop Base Address so that it will return some shipping costs until the customer changes this with their address.

    Hope this helps!

    laceyrod

    (@laceyrod)

    Automattic Happiness Engineer

    Hi @iqqsam182

    This thread has been inactive for a bit, so I’m going to mark it as Resolved now. Please feel free to open a new one if you have any further questions.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Updating woocommerce shopping costs when changing the state field only’ is closed to new replies.