I have two flat rate shipping methods set up within Shipping Zones. At the checkout both of these shipping methods are available.
I'd like to display a text description under each flat rate shipping option. There doesn't seem to be any options to do this in WooCommerce.
I have tried the following code but needless to say it doesn't work:
add_filter( 'woocommerce_page_title', 'woo_shop_page_title');
function wc_get_shipping_zone( $package ) {
if( $package == 'flat_rate:1') {
return "<p>Arriving on your chosen date between 9am - 1pm Perfect for business addresses & special occasions</p>";
}
if( $package == 'flat_rate:2') {
return "<p>Arriving on your chosen date between 9am - 7pm Perfect for residential addresses</p>";
}
}
Could anyone help to make this work?
This is what I would like the description to look like in the checkout:
$method->description
to show it? – Horning