I need to add a shipping notice at checkout and i have the below code:
// adds order note at checkout page
function notice_shipping() {
echo '<p id="allow">Please allow 5-10 business days for delivery after order processing.</p>';
}
add_action( 'woocommerce_before_order_notes', 'notice_shipping' );
I just need to know if there is a way to restrict this notice to my international customers? I don't mind having to list each country and Canada would be a great start.
I have seen the $woocommerce->customer->get_shipping_country()
but not entirely sure how to implement it in my functions.phpand also what codes does Woocommerce use for each country?
Thanks for helping me out!