Created
February 28, 2017 20:34
-
-
Save wp-kitten/d6b9024e6a23f35fdeaf6ce9508a269f to your computer and use it in GitHub Desktop.
WooCommerce - display product variations as list after Product Content
This file contains hidden or 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
/* Tested with Catalog Mode = true */ | |
/* | |
* Remove the following tabs from the Product page: | |
* - Description | |
* - Reviews | |
* - Additional Information | |
*/ | |
remove_filter( 'woocommerce_product_tabs', 'woocommerce_default_product_tabs' ); | |
/* | |
* Display the product variations on Single Product Template right after the product info | |
*/ | |
add_action( 'woocommerce_single_product_summary', 'woo_product_variations_list', 41 ); | |
function woo_product_variations_list() | |
{ | |
global $product; | |
$product->list_attributes(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment