Troubleshooting
Type Not Displaying on Review
Section titled “Type Not Displaying on Review”Type Not Assigned
Section titled “Type Not Assigned”- Go to Comments in the administration
- Open the review detail
- In the WPify Woo Details metabox, select the type
- Save changes
Metabox Not Displaying
Section titled “Metabox Not Displaying”The metabox is displayed only for comments of type review (product reviews).
Check:
- Make sure the comment is a product review, not a regular comment
Theme Conflict
Section titled “Theme Conflict”Some themes override the review template. Check:
your-theme/woocommerce/single-product/review.phpIf the template exists and does not contain the woocommerce_review_meta hook, the type will not be displayed.
Types Not Showing in Settings
Section titled “Types Not Showing in Settings”Empty List
Section titled “Empty List”If you have not added any types yet, the list will be empty.
Solution:
- Click the button to add a new type
- Enter the name (label)
- Save changes
Type Displaying Incorrectly
Section titled “Type Displaying Incorrectly”Missing CSS
Section titled “Missing CSS”Make sure your theme properly loads WooCommerce styles:
// In the theme's functions.phpadd_action( 'wp_enqueue_scripts', function() { wp_enqueue_style( 'woocommerce-general' );} );Custom Styling
Section titled “Custom Styling”To customize the type appearance, use CSS:
.woocommerce-review__type { font-style: normal; background: #f0f0f0; padding: 3px 8px;}Diagnostics
Section titled “Diagnostics”Checking Meta Data
Section titled “Checking Meta Data”// Getting comment meta data$details = get_comment_meta( $comment_id, '_wpify_woo_details', true );print_r( $details );Checking Module Settings
Section titled “Checking Module Settings”$module = wpify_woo_container()->get( \WpifyWoo\Modules\Comments\CommentsModule::class);
$types = $module->get_setting( 'comment_types' );print_r( $types );Verifying the Hook
Section titled “Verifying the Hook”// Check if the hook existsadd_action( 'woocommerce_review_meta', function() { echo '<!-- Hook works -->';}, 999 );