Dear Support,
Congratulations on your excellent Pavilion theme!
I want to display FREE instead of 0.00 in every price field.
I have done the vqmod below but the system shows FREE€, or $ alone. I think that at some point Pavilion inserts the currency symbol. I played a little with ‘tb_themes/pavilion/library/PriceFormatter.php’ but with no good. In default theme everything looks as it should.
(opencart 2.0.3.1, Pavilion 1.2.5)
Can you please assist me on that?
<file path="system/library/currency.php">
<operation>
<search position="after" error="log"><![CDATA[
$string = '';
]]></search>
<add><![CDATA[
if ((float)$value == 0 && ($format)) {
$string = $this->language->get('text_free');
}
]]></add>
</operation>
<operation>
<search position="replace" error="log"><![CDATA[
$string .= number_format(round($value, (int)$decimal_place), (int)$decimal_place, $decimal_point, $thousand_point);
]]></search>
<add><![CDATA[
if ((float)$value != 0 && ($format)) {
$string .= number_format(round($value, (int)$decimal_place), (int)$decimal_place, $decimal_point, $thousand_point);
}
]]></add>
</operation>
</file>
|
|
Hi,
We will add this as an option in the upcoming major update.
BR,
ThemeBurn team
|
|
Thank you ThemeBurn for your reply.
Waiting for this!
Do you have a time frame for this update?
-
This reply was modified 3138 days ago by iSamCode.
|
|