Saltar navegación

[Resuelto] woocommerce reviews not showing in content template

This support ticket is created hace 3 años, 12 meses. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Zona horaria del colaborador: America/Jamaica (GMT-05:00)

Etiquetado: 

Este tema contiene 8 respuestas, tiene 2 mensajes.

Última actualización por blueS-2 hace 3 años, 11 meses.

Asistido por: Shane.

Autor
Mensajes
#2102923

Tell us what you are trying to do?
Hello
I'm setting up a content template for woocommerce products (as a catalog, no prices) and want to display existing customer reviews and star rating.
The star rating gets all messed up, both using wc native and toolset output.
The reviews do not show up at all: Tried adding both the toolset woo blocks reviews widget and also using the wpv-woo-reviews shortcode and the product tabs. They never show up. Tried changing the theme to 2021 but they keep not showing up.
Reviews exist and do show when using the default woocommerce product reviews block, but there is no way of dynamically assign the product, so can't use it in the content template.
Site and server setup is the same described in previous support tickets.

You can see an example here: enlace oculto
You can use the admin access I provided earlier.

thanks in advance and best regards
Alex

#2103193

Shane
Colaborador

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Alex,

Thank you for getting, would you mind if I took a copy of your site to test here locally ?

This is so I dont do any testing on your live site in the event that the site becomes unusable.

Please let me know.

Thanks,
Shane

#2106575

Hello Shane
Sorry for the late reply, yes please, feel free to create a copy.

#2107043

Shane
Colaborador

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Alex,

I reviewed your ticket once more to see if I had missed anything in the description and you mentioned this.
Reviews exist and do show when using the default woocommerce product reviews block, but there is no way of dynamically assign the product, so can't use it in the content template.

What do you mean by dynamically assign the product? Are you referring assigning the product to the template?

Also I did a test of the reviews block on a fresh site and the issue is not present there, what we are experiencing here is unique to your site only.

Please let me know.
Thanks,
Shane

#2108361
Imagem1.png

Hello Shane
Thank you for your reply.
There is clearly a problem with the toolset interoperation with woocommerce here, and it's been worsening every day.
For example now, when creating a content template for a product I can't access taxonomies, either product categories, custom taxonomies or attributes (see attached image).
The problem is this has been happening for a while and I'm losing toolset features every day, at the same time taxonomies disappear some custom fields "non-types" show up. It looks like toolset, as especially blocks is loosing all sync with woo and postmeta database, which may explain the sluggishness e server processor spykes.
Is there a way of "resynching" toolset with woo and postmeta?

Thanks

#2112365

Shane
Colaborador

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hello,

Not sure what is happening here, however it can be do to a number of things.

For this reason I've sought the assistance of our 2nd tier supporters to se if they can dig deeper into the issue for us.

I will provide an update on this one as soon as I get a response from them.

Thanks,
Shane

#2114389

Shane
Colaborador

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hello,

I have a small update for you. Our 2nd tier identified why the taxonomy isn't showing up and created an errata page below.
https://toolset.com/errata/dynamic-sources-missing-options-in-content-templates-with-display-conditions/

However they are still investigating the reviews block issue.

Thank you for your continued patience with us.

#2115619

Shane
Colaborador

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Screenshot 2021-07-15 at 2.25.17 PM.png

Hello,

I have some good news on this regarding the reviews block. It would appear that your comments are closed despite being set to open in your Discussion settings for wordpress.

Our 2nd tier team was able to identify 2 workarounds that can help to get this working again for you.

1. You will need to go to each individual product and allow comments. See Screenshot

2. You can use the code below to force the comments to be open for your products.


/**
 * Force comments open on products
 */
add_filter( 'comments_open', 'ts_force_comments_open', 10, 2 );
function ts_force_comments_open( $open, $post_id ){
 
	$post = get_post( $post_id );
	if ( $post->post_type == 'product' )
	{
		$open = true;
	}
 
	return $open;
}

This can be added in your toolset custom code settings at Toolset -> Settings -> Custom Code. Just add the code and ensure that you've activated the snippet.

Please let me know if this helps.
Thanks,
Shane

#2119505

My issue is resolved now. Thank you!

Thank you Shane.
I've been out for a couple of days but saw your replies and it worked, both the access to the taxonomies and fields using the errata, and the woo reviews using the code snippet you provides.
Thanks again and best regards