Zoltán Vasvári Posted February 12 Share Posted February 12 (edited) 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'] ); } Edited February 12 by Zoltán Vasvári (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now