Product ratings not showing correctly for product variants
pfeitim opened this issue ยท 5 comments
PHP Version
8.2.7
Shopware Version
6.5.3.3
Actual behaviour
If you add some product variants to the product comparison and their main product items have ratings, the stars of the ratings are displayed orange-coloured in the comparison, but the subtitle remains "0 ratings".
Expected behaviour
It should show the correct number of ratings for each variant when comparing the variant - even if the rating is for the main product and not for the variant itself.
Optional: It would be nice if there was a setting to always compare the main product.
Steps to Reproduce?
- Create a shopware product with min. 2 variants
- Create a product rating, publish product rating
- Add a variant of the according product to the product comparison.
You can take a look at our shop where the problem occurs โ Use this product and add it to the comparison:
https://fortdress-group.com/frische-jacke-taiga/fbj12
I understand this confusing behaviour.
The stars are based on the entire product, including variants, which is shopware default.
The reviews are loaded besides default.
The default from shopware would be to have the count of all reviews also like happening in detail.
I think this should be the goal of this.
Regarding your idea of having just the reviews of this variant could result in confused customers, while the product detail would show different review status.
That is the reason, I think this should be the goal:
- get the same review-count as in product detail
What do you think @vienthuong ?
@tinect That's absolutely what i wanted to mention: get the same review-count as in the main product โ no need for ratings per variant...
@vienthuong no, we mean: just the same number as in detail page, which is over all variants. ๐
ah yes, that shoulds good at well ๐๐ฝ