Skip to content

Instantly share code, notes, and snippets.

@wp-kitten
Created February 28, 2017 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wp-kitten/d6b9024e6a23f35fdeaf6ce9508a269f to your computer and use it in GitHub Desktop.
Save wp-kitten/d6b9024e6a23f35fdeaf6ce9508a269f to your computer and use it in GitHub Desktop.
WooCommerce - display product variations as list after Product Content
/* 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