Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

I want to be seeing review stars

Featured Replies

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

 

  • 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.

  • 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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.