• Resolved mkruip05

    (@mkruip05)


    Hi there,

    Hope you guys can help me over here.

    The situation now is:
    An user is on the checkoutpage and want to see how much he/she needs to pay for shipping the products. The user fills in his/her postcode. After that the user clicks on ‘Bestelling plaatsen’, the page is refreshing and the shippingcosts are changed.

    What it should be:
    The user fills in the postcode and then the shippingcosts update without refreshing the page.

    I got a website https://247aanhangwagen.nl/checkout/ where the postcode works, I see in the network tab of the console that the postcode triggers update_order_review which I need to update the shippingcosts.

    But how can I trigger this? Is there a setting in Woocommerce which enables AJAX?

    Regards,

    Mark Kruip

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Hari Shanker R

    (@harishanker)

    Hi @mkruip05

    The user fills in the postcode and then the shippingcosts update without refreshing the page.

    This would need significant modifications of the checkout page logic, as wella s the code. If you would like to do this, you might need to do some custom coding with JavaScript such that an AJAX based call is placed. I’m not aware of a way to do this directly, but I found this custom code by a third party: https://gist.github.com/neamtua/bfdc4521f5a1582f5ad169646f42fcdf

    I’m not sure if it would work or not (haven’t tested it), but it might be a good idea to give it a try.

    I hope that helps!

    jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wc-ajax=update_order_review not triggering on postcode change’ is closed to new replies.