Created
January 9, 2019 14:07
-
-
Save renjith-ph/103300e5d0c22b6100f50867a00f563d to your computer and use it in GitHub Desktop.
Add warning on top of estimated delivery date
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'xa_estimated_delivery_cart_checkout_page_html_formatted_date', 'ph_estimated_delivery_add_warning_on_above_estimated_delivery',11,2 ); | |
function ph_estimated_delivery_add_warning_on_above_estimated_delivery( $text, $test ) { | |
$message='<tr class="shipping"><th>Your cart having back-order products</th></tr>'; // add your message here | |
$text=$message.$text; | |
return $text; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment