Filter which checks customers ‘country’?

Top WooCommerce & WordPress Plugins Forums Order Status Rules for WooCommerce Filter which checks customers ‘country’?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #85583
    blankAB
    Guest

    Hi,

    Is it possible to set a filter which checks customers ‘country’? We need to send a specific email to specific countries, thanks

    #85584
    blankTom Anbinder
    Moderator
    Plugin Support

    Hi,

    Yes, that’s possible.

    There is “Conditions > Order meta” section in each rule’s settings (i.e., in “WooCommerce > Settings > Order Status Rules > Rule #X”). There you need to set the “Meta key” option to either _billing_country or _shipping_country, and the “Meta value” option to your country code, e.g., US (please note the capitalization). Also, if you want to check for multiple countries, you can enable the “Multiple meta values” checkbox there and then set the “Meta value” option as a comma-separated list, e.g., US,CA.

    Please give it a try and let me know what you think.

    #85585
    blankTom Anbinder
    Moderator
    Plugin Support

    Update: I’ve decided to make it a bit easier for you. If you update the plugin to the latest version 2.7.0, you’ll find two new “Conditions” in each rule’s settings – “Billing countries” and “Shipping countries”. So there is no need to use the “Order meta” condition anymore. Please give it a try and let me know what you think.

    #85586
    blankAengus Barton
    Participant

    Hi Tom,

    That’s amazing, thank you!

    #85587
    blankTom Anbinder
    Moderator
    Plugin Support

    Happy to help 🙂

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.