Hello I've found a way for PS 1.7.5.0 It's maybe the same trick for PS1.7.6 whatever :
On the file Prestashop_1_7_5_0/vendor/icanboogie/cldr/lib/NumberPattern.php
Ligne 275
public function format_integer_with_decimal($integer, $decimal, $decimal_symbol)
{
//FIRST TRICK : Remove decimals with a condition for example any price with decimal at 0
if (in_array($decimal, array("0","00","000","0000","00000","000000"))) {
$decimal = null;
} else {
if ($this->decimal_digits > strlen($decimal)) {
$decimal = str_pad($decimal, $this->decimal_digits, '0');
}
if (strlen($decimal)) {
$decimal = $decimal_symbol . $decimal;
}
}
//SECOND TRICK : Remove any decimals even if the price is 19,12 it will be displayed 19
//remove the line below ($decimal = null;) if this is not what you wanted.
$decimal = null;
return "$integer" . $decimal;
}
I've put 2 visions
- The first one is to remove decimals only if the real price is 19,00 € -> 19 € up to 6 decimals
- The second one is to remove decimals everywhere
I have not test that everywhere on the website but it seems ok
Hope its will be helpfull :). Tell me