Skip to content

Instantly share code, notes, and snippets.

@growdev
Created March 20, 2013 16:02
Show Gist options
  • Save growdev/5205887 to your computer and use it in GitHub Desktop.
Save growdev/5205887 to your computer and use it in GitHub Desktop.
custom shipping message on checkout screen.
<?php
add_action( 'woocommerce_before_checkout_form', 'my_custom_shipping_message' );
function my_custom_shipping_message( ) {
global $woocommerce;
foreach ( $woocommerce->cart->get_cart() as $cart_item_key => $values ) {
$_product = $values['data'];
/**
* check if product is in category, if yes, echo out message.
**/
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment