Skip to content

Instantly share code, notes, and snippets.

@ofernandolopes
Forked from claudiosanches/functions.php
Created March 13, 2017 19:04
Show Gist options
  • Save ofernandolopes/9cfaa1ef9316e120b3d90823edb144e3 to your computer and use it in GitHub Desktop.
Save ofernandolopes/9cfaa1ef9316e120b3d90823edb144e3 to your computer and use it in GitHub Desktop.
WooCommerce - Adds a custom message about how long will take to delivery.
<?php
/**
* Adds a custom message about how long will take to delivery.
*/
function my_wc_custom_cart_shipping_notice() {
echo '<tr class="shipping-notice"><td colspan="2"><small>';
_e( '<strong>Atenção:</strong> O prazo de entrega começa a contar a partir da aprovação do pagamento.', 'my-text-domain' );
echo '</small></td></tr>';
}
add_action( 'woocommerce_cart_totals_after_shipping', 'my_wc_custom_cart_shipping_notice' );
add_action( 'woocommerce_review_order_after_shipping', 'my_wc_custom_cart_shipping_notice' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment