surveywp / kk-star-ratings

kk Star Ratings wordpress plugin
https://wordpress.org/plugins/kk-star-ratings
Other
118 stars 44 forks source link

Does not work for WooCommerce product archive pages [Question/BUG] #137

Open RickOnGitHub opened 10 months ago

RickOnGitHub commented 10 months ago

Detailed description

When I enable the plugin, the plugin works pretty fine on the whole site except for the WooCommerce product archive pages. I've tried to add the described code echo kk_star_ratings(); but this does not seem to add the "Rich Snippet" content.

Provide a detailed description of the change or addition you are proposing: I think it would be useful to have a small explanation or description to get this working in my WooCommerce archive templates.

Make it clear if the issue is a bug, an enhancement or just a question: I'm not sure if the WooCommerce archives should work out-of-the-box. Otherwise it's more of a general question.

Context

Why is this change important to you? How would you use it? (How can it benefit other users?): The review functionality is very useful for the Google Ranking, and the WooCommerce archive pages are very important in this. So it's a nice addition to be able to use it here.

Possible implementation

Maybe a code snippet that can be used in a WordPress hook/filter so that this can be implemented in every theme.

Your environment

Include as many relevant details about the environment you experienced the bug in and how to reproduce it.

Install the plugin, install WooCommerce, set up an products archive, then see the result.