Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Run PHP script whenever checkout is refreshed

$
0
0

Replies: 0

I have a PHP script that takes the postcode, processes it and returns some information.

I am currently using woocommerce_checkout_after_customer_details to insert this script and all works correctly on the first load of the checkout.

But if somebody changes their postcode then I want my function to be run again so the new postcode is picked up.

Any ideas on what filter / hook I can use?

I looked at woocommerce_checkout_update_order_review but couldn’t see how to make it work. Any one any pointers?

  • This topic was modified 6 minutes ago by blernt1on.

Viewing all articles
Browse latest Browse all 59525

Trending Articles