Jump to content

Display "Free!", instead of 0,00 EUR


Recommended Posts

  • 2 years later...

Very very simple !

You have to edit Tools classe in "/classes/Tools.php", search for public static function displayPrice($price, $currency = NULL, $no_utf8 = false) and first line of the function, you cann something like : if ((int) $price == 0) return "Gratuit !";

It's good but, they didn't include the tax display in this function ;-( so you have to disable tax display or edit your template to hide the tax when price is equal to 0 !

  • Like 1
Link to comment
Share on other sites

  • 4 years later...
×
×
  • Create New...