• I would like to display a message if a customer is from certain countries. After the customer selects the country from the dropdown list on the Checkout page is there any hook or anything I can use to check what country was selected and perform an action based on the input?

Viewing 1 replies (of 1 total)
  • Thread Starter jwiere03

    (@jwiere03)

    After looking over this Customizing checkout fields using actions and filters it looks like there is an array called “checkout_fields” so we should be able to set a varible to the vaule of the country in the billing address. Something similar to:
    $var = $checkout_fields['billing_country'];

    I’m a little rusty with arrays etc… And I can’t quite get it to work.

Viewing 1 replies (of 1 total)
  • The topic ‘Get country selected from Checkout form and take action accordingly?’ is closed to new replies.