The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Woocommerce Product...
 
Share:
Notifications
Clear all

[Solved] Woocommerce Product Page

4 Posts
3 Users
0 Likes
2,498 Views
Posts: 1
Topic starter
(@lucia116)
New Member
Joined: 3 years ago

I want to use it on the Woocommerce product page.
How shall I do it?

3 Replies
Asti
Posts: 7114
 Asti
Support
(@asti)
Illustrious Member
Joined: 6 years ago

Hi @lucia116,

You should enable the comment form for "Product" post type. More info here: https://wpdiscuz.com/docs/wpdiscuz-7/getting-started/manage-comment-forms/comment-form-settings/#post-types

2 Replies
(@kidfrom)
Joined: 2 years ago

New Member
Posts: 4

@asti I wish to edit the `Reviews (1)` tab to `Discussions (1)`. How can I achieve this?

 

The current solution is to use code snippet from WooCommerce Docs . However, it will not count the number of comments anymore, it will only change the tab name to `Discussions`.

 

What I have did

1. Checked the wpDiscuz > Phrases and I did not found any.

2. Use Code Snippets plugin.

Asti
 Asti
Support
(@asti)
Joined: 6 years ago

Illustrious Member
Posts: 7114

@kidfrom,

Please use this code:

add_filter( 'woocommerce_product_tabs', 'woo_rename_tabs', 98 );
function woo_rename_tabs( $tabs ) {
        global $product;
	$tabs['reviews']['title'] = __( 'Ratings' ) . '(' . $product->get_review_count() .')';
	return $tabs;
}
Share: