Archived topic
Seller Theme product page questions
3 replies · Started by Steve on November 13, 2020
Hi,
I would like to make a few adjustments to the product pages on the Seller theme (woocommerce).
I would like to remove the tabs for "Description", "Additional information" and "Reviews". Then I'd like to have the content for "Additional information" and "Reviews" appear below the Description. Also would like to remove the title for "Description" and "Additional information" but keep the title for "Reviews".
I don't even need the short description. If I could display the main description starting below the product title, that would be ideal. And then have the Buy Now button appear above the "Reviews" section.
Please advise.
Thanks,
Steve
Hi there,
Unfortunately GP (any themes) has very little control over the single products page.
The tabs functionality is also controlled by WooCommerce as well:
https://docs.woocommerce.com/document/editing-product-data-tabs/
Your request would require some custom development to modify the single product template from WooCommerce or create your own single product template.
Understood. Thanks!
Hi there,
try this PHP Snippet:
add_action( 'woocommerce_after_single_product_summary', 'removing_product_tabs', 2 );
function removing_product_tabs(){
remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10 );
add_action( 'woocommerce_after_single_product_summary', 'get_product_tab_templates_displayed', 10 );
}
function get_product_tab_templates_displayed() {
wc_get_template( 'single-product/tabs/description.php' );
wc_get_template( 'single-product/tabs/additional-information.php' );
comments_template();
}
add_filter( 'woocommerce_product_description_heading', '__return_null' );
add_filter('woocommerce_product_additional_information_heading', '__return_null' );