Author Topic: Prestashop 1.7.6.4 let's remove this decimals...  (Read 200 times)

sundar

  • Site Manager
  • Full Member
  • *****
  • Posts: 86
  • Total likes: 1
  • Karma: +1/-0
  • Gender: Male
  • Thirsty Knowledge...
    • View Profile
    • Can talk anything
Prestashop 1.7.6.4 let's remove this decimals...
« on: June 26, 2020, 08:31:05 AM »
File : prestashop1_7_6_4/src/Core/Localization/Number/Formatter.php


#REPLACE if ($minorDigits) { $formattedNumber .= self::DECIMAL_SEPARATOR_PLACEHOLDER . $minorDigits; }


#BY if (in_array($minorDigits, array("0","00","000","0000","00000","000000"))) { $formattedNumber = $formattedNumber; } else if ($minorDigits) { $formattedNumber .= self::DECIMAL_SEPARATOR_PLACEHOLDER . $minorDigits; }


Still the same tricks, i only remove decimals from prices that have "0" in decimals
Save then refresh your page...End of story.
« Last Edit: July 15, 2020, 08:29:58 AM by sundar »
Always TAG your threads

  • Download all the schematics here Direct download
  • Stay connected with SMMobiles on

 

SimplePortal 2.3.7 © 2008-2021, SimplePortal