Jump to content

Edit History

delete-account-pleas

delete-account-pleas

It is a know bug (https://github.com/PrestaShop/PrestaShop/issues/23376)

Change following line which can be found around line 387 - 390 in the file: YOURSHOP/src/Adapter/Product/AdminProductDataProvider.php

Original

    if ($formatCldr) {
        $product['price'] = Tools::displayPrice($product['price'], $currency);
        $product['price_final'] = Tools::displayPrice($product['price_final'], $currency);
    }

Replace with:

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);
}

 

delete-account-pleas

delete-account-pleas

It is a know bug (https://github.com/PrestaShop/PrestaShop/issues/23376)

Change following line which can be found around line 387 - 390 in the file: YOURSHOP/src/Adapter/Product/AdminProductDataProvider.php

Original

    if ($formatCldr) {
        $product['price'] = Tools::displayPrice($product['price'], $currency);
        $product['price_final'] = Tools::displayPrice($product['price_final'], $currency);
    }

Replace with:

if ($formatCldr && $product['price'] != null && $product['price_final'] != null) {
    $product['price'] = Tools::displayPrice($product['price'], $currency);
    $product['price_final'] = Tools::displayPrice($product['price_final'], $currency);
}

 

delete-account-pleas

delete-account-pleas

It is a know bug (https://github.com/PrestaShop/PrestaShop/issues/23376)

Change following line which can be found around line 387 - 390 in the file: YOURSHOP/src/Adapter/Product/AdminProductDataProvider.php

Original

    if ($formatCldr) {
        $product['price'] = Tools::displayPrice($product['price'], $currency);
        $product['price_final'] = Tools::displayPrice($product['price_final'], $currency);
    }

Replace with:

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);
}

 

×
×
  • Create New...