Closed seegrand closed 4 years ago
Hi @seegrand API does not return duplicates. Do you have any live example or you could please provide more data?
closing due to inactivity
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
Simple product: 231102
Combined with \Trustpilot\Reviews\Block\Trustbox::loadPageTrustboxes
this will result in double reviews in the Trustpilot widget.
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.