trustpilot / plugin-magento2

Magento 2 plugin for sending invitation data to Trustpilot
MIT License
10 stars 27 forks source link

Configurable products show dubble reviews #74

Closed seegrand closed 4 years ago

seegrand commented 4 years ago

Problem

When the reviews show for configurable products, double reviews show in the widget. This has to do with reviews being connected with the configurable products as the underlying simple products.

In \Trustpilot\Reviews\Block\Trustbox::loadPageTrustboxes all products SKU's get put into the data of the widget. The Trustpilot API endpoint does not check for double reviews and returns them all.

This could be fixed in two ways, inside the Magento 2 module or the Trustpilot API. I like to hear further actions.

vilgro commented 4 years ago

Hi @seegrand API does not return duplicates. Do you have any live example or you could please provide more data?

vilgro commented 4 years ago

closing due to inactivity

seegrand commented 4 years ago

Hi @vilgro,

Sorry for the late response. I have a real world example regarding this issue: https://www.misterb.com/en/mister-b-leather-premium-jockstrap-black-231100

This has to do with reviews being connected to both the configurable product als the simple underlying products:

Configurable product: 231100

configurable

Simple product: 231102

simple

Combined with \Trustpilot\Reviews\Block\Trustbox::loadPageTrustboxes this will result in double reviews in the Trustpilot widget.