I have a problem where if a customer chooses local pick – then the shipping address is not shown , even if they enter it – that is where a Order NOTE (optional) maybe added
I wont the shipping address to be show regardless – so found this forum had answered 5 years ago
text
function show_ship_add_for_local_pickup( $needs_address, $hide ) {
$needs_address = true;
return $needs_address;
}
add_filter( 'woocommerce_order_needs_shipping_address', 'show_ship_add_for_local_pickup', 10, 2 );
function show_ship_add_for_local_pickup( $needs_address, $hide ) {
$needs_address = true;
return $needs_address;
}
add_filter( 'woocommerce_order_needs_shipping_address', 'show_ship_add_for_local_pickup', 10, 2 );
added above using a code block
which works fine , but as the Order NOTE was not include before this code and ONLY if an Shipping class was used – which i have some and tested – The order not was NOT included in that order email either
SO in summary
i want the shipping information to ALWAYS be on the order email – regardless of the shipping method – AND i want the order Note to be included
this code is fine, it does add the shipping information – BUT woocommerce does not include the Order Note as part of the order email – so if i remove the code and place an order with a shipping class – i get the shipping address details , BUT not the Order note – if i just have local pickup , then woocommerce does not provide the shipping address details at all – this code adds the shipping address details to the order email
ETAF is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.