Created
January 13, 2018 17:29
-
-
Save erikyo/bffdaa19bfc1848a82c0e19346d40b70 to your computer and use it in GitHub Desktop.
WOOCOMMERCE show sku for bundled products
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
// WOOCOMMERCE show sku for bundled products | |
add_action( 'woocommerce_bundled_item_details', 'show_bundled_sku', 16 ); | |
function show_bundled_sku( $bundled_item, $product ) { | |
if ($bundled_item->product->sku) { | |
printf('<p class="sku"><span class="woocommerce-Sku sku">%s</span></p>',$bundled_item->product->sku) ; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment