FREE instead of 0.00

This topic has been marked as not resolved.

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>

September 15, 2015 at 1:25 pm #43176

Hi,

We will add this as an option in the upcoming major update.

BR,
ThemeBurn team

September 28, 2015 at 1:31 pm #43282

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.
September 28, 2015 at 1:58 pm #43283
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.