Closed govereem closed 4 years ago
Hi,
Late reply but there has been some development on this issue. You could try and test branch
issue/117647-grouped-recommendations
.
Indeed the issue is that the recommendation response varies on the type of request.
With kind regard
Hello,
This should be fixed in v2.1.1 https://github.com/EmicoEcommerce/Magento2Tweakwise/releases/tag/v2.1.1
If you feel this is incorrect, feel free to reopen this.
With kind regards
I think tweakwise changed the result given and changed the xml structure. vendor/emico/tweakwise/src/Model/Client.php function doRequest returns the wrong array structure after xmlToArray. The upsell / crosssell collection expects an array return from doRequest items->item[] But will return recommendation->items->item[], the collection will have no records.
URL: http://navigator-group1.tweakwise.com/recommendations/grouped/..../...../groupname
Magento 2.2.4 Tweakwise Version 1.3.2 php 7.1
For now fixed it with a dirty solution In the doRequest added to the and before $this->responseFactory->create($request, $result);
Result grouped:
Result product template (That works!):