Created
March 20, 2013 16:02
-
-
Save growdev/5205887 to your computer and use it in GitHub Desktop.
custom shipping message on checkout screen.
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
<?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