Skip to content

Troubleshooting

  1. Go to Comments in the administration
  2. Open the review detail
  3. In the WPify Woo Details metabox, select the type
  4. Save changes

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

Some themes override the review template. Check:

your-theme/woocommerce/single-product/review.php

If the template exists and does not contain the woocommerce_review_meta hook, the type will not be displayed.

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

Make sure your theme properly loads WooCommerce styles:

// In the theme's functions.php
add_action( 'wp_enqueue_scripts', function() {
wp_enqueue_style( 'woocommerce-general' );
} );

To customize the type appearance, use CSS:

.woocommerce-review__type {
font-style: normal;
background: #f0f0f0;
padding: 3px 8px;
}
// Getting comment meta data
$details = get_comment_meta( $comment_id, '_wpify_woo_details', true );
print_r( $details );
$module = wpify_woo_container()->get(
\WpifyWoo\Modules\Comments\CommentsModule::class
);
$types = $module->get_setting( 'comment_types' );
print_r( $types );
// Check if the hook exists
add_action( 'woocommerce_review_meta', function() {
echo '<!-- Hook works -->';
}, 999 );