I am currently using the following code in the functions.php
file.
add_action( 'woocommerce_after_shipping_rate', 'action_after_shipping_rate', 20, 2 );
function action_after_shipping_rate ( $method, $index ) {
// Targeting checkout page only:
if( is_cart() ) return; // Exit on cart page
if( 'flat_rate:3' ) {
echo __("<p>Delivery will take place tomorrow</br> morning between 8-12</p>");
}
}
Now I would like to get the customer postcode, to then add it to my pre-existing code.
Someone who can help me with this?