Jump to content

Edit History

Yohannn

Yohannn

14 hours ago, Prestan0ob said:

there is not other solution in this topic except this one:

Add this logic to the if on line 390 in src/Adapter/Product/AdminProductDataProvider.php

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

It's safe to change this line.

Yes I understand this but if in the next time I want to upgrade my prestashop version, the line added will be disappear

 

Yohannn

Yohannn

13 hours ago, Prestan0ob said:

there is not other solution in this topic except this one:

Add this logic to the if on line 390 in src/Adapter/Product/AdminProductDataProvider.php

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

It's safe to change this line.

Yes I understand this but if in the next time I want to upgrade my prestashop version, the line added will be disappear

And the code in the "if" does what ?

Yohannn

Yohannn

13 hours ago, Prestan0ob said:

there is not other solution in this topic except this one:

Add this logic to the if on line 390 in src/Adapter/Product/AdminProductDataProvider.php

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

It's safe to change this line.

Yes I understand this but if in the next time I want to upgrade my prestashop version, the line added will be disappear

×
×
  • Create New...