Closed ah-net closed 2 years ago
Hello, guys! Thanks a lot for that fix!
I've found another issue in
vendor/emico/tweakwise/Model/Autocomplete/DataProviderHelper.php::getProductItems() line 147
The foreach loop should be like this
foreach ($response->getProductData() as $item) {
$product = $productCollection->getItemById($item['id']);
if (!$product) {
continue;
}
$product->setData('tweakwise_price', $item['tweakwise_price']);
$result[] = $this->productItemFactory->create(['product' => $product]);
}
Because a product can be null
$product = $productCollection->getItemById($item['id']);
$product->setData('tweakwise_price', $item['tweakwise_price']);
Fixes https://github.com/EmicoEcommerce/Magento2TweakwiseHyva/issues/24
Grouped/bundled prices in the autocomplete dropdown are not correct. This fix uses the price from tweakwise to show in the autocomplete dropdown.