Hello Qphoria, this seems to work but I only have one problem... when displayed in the front end, before the word 'FREE' I have the Currency Symbol in the left which actually overrites the first letters. In my case it displays "RD$E", but if I make the return "___FREE" then it displays "RD$FREE". How can I make it display the word "FREE" without the Currency Symbol?Qphoria wrote:A little trick to make this a lot easier for you..
Remember all prices pass through the currency->format() function, even if they are 0
1. EDIT: system/library/currency.php (or system/helper/currency.php for certain versions)
2. FIND:3. BEFORE, ADD:Code: Select all
$string = '';
Code: Select all
if ($format && (float)$value == 0) { return 'FREE'; }
That's it! One file handles ALL places.. even custom mods are automatically changed
Also could I disable the "Add To Cart" in this cases?
I have OpenCart Version 1.5.1.3 with the Shoppica theme.
Thank you and amazing work on OpenCart!