Hi there,
a well known bug appearing in Prestashop 8 as well and looking for implementing the 1.7.7.x solution here
The description of bug is here
From: "if ($formatCldr) { $product['price'] = Tools::displayPrice($product['price'], $currency); $product['price_final'] = Tools::displayPrice($product['price_final'], $currency); }"
To: if ($formatCldr && $product['price'] != null && $product['price_final'] != null) { $product['price'] = $localeCldr->formatPrice($product['price'], $currency->iso_code); $product['price_final'] = $localeCldr->formatPrice($product['price_final'], $currency->iso_code); }
Know in Prestashop 8 it looks a bit different. Looking for help to modify and fix according earlier.
" if ($formatCldr) {
$product['price'] = $localeCldr->formatPrice($product['price'], $currency->iso_code);
$product['price_final'] = $localeCldr->formatPrice($product['price_final'], $currency->iso_code);
}
$product['image'] = $this->imageManager->getThumbnailForListing($product['id_image']);
$product['image_link'] = Context::getContext()->link->getImageLink(
$product['link_rewrite'],
(string) $product['id_image']
);
}