June 29, 201610 yr Hi, Found a piece of code and modified it to remove Woo's review tab and then set under the product description. This is what I am using /** * Remove existing tabs from single product pages. */ function remove_woocommerce_product_tabs( $tabs ) { unset( $tabs['reviews'] ); return $tabs; } add_filter( 'woocommerce_product_tabs', 'remove_woocommerce_product_tabs', 98 ); /** * Hook in each tabs callback function after single content. */ add_action( 'woocommerce_after_single_product_summary', 'comments_template' ); Worked like a charm except for one thing which is now driving me crazy to try and figure out. Only in the ADD A REVIEW/YOUR RATE section it has removed Stars for rating system and implemented a number system 12345. Which looks like crap and don't think anyone will know what it is. If I remove my code and reviews go back to the review tab Stars are back for the YOUR RATE. Page example: https://www.boatpartsforless.com/shop/sei-mercruiser-alpha-1-gen-ii-omc-cobra-complete-conversion-kit/ Any help on showing the Stars for YOUR RATE when moved out of tabs will be much appreciated. Joe
June 30, 201610 yr Author Go to ADD A REVIEW just under YOUR RATE. It should show stars to rate instead showing 12345. This only happens when the review tab is unset from the tab menu and reviews are nested under the description with the code I used.
July 1, 201610 yr Author Figured it out. Added: <?php echo comments_template('woocommerce/single-product-reviews'); ?> to Woo's description.php file and only used function remove_woocommerce_product_tabs( $tabs ) { unset( $tabs['reviews'] ); return $tabs; } add_filter( 'woocommerce_product_tabs', 'remove_woocommerce_product_tabs', 98 ); in function.php
Create an account or sign in to comment