Skip to content

Instantly share code, notes, and snippets.

@renjith-ph
Created January 9, 2019 14:07
Show Gist options
  • Save renjith-ph/103300e5d0c22b6100f50867a00f563d to your computer and use it in GitHub Desktop.
Save renjith-ph/103300e5d0c22b6100f50867a00f563d to your computer and use it in GitHub Desktop.
Add warning on top of estimated delivery date
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