Jump to content

Edit History

Mdesign49

Mdesign49

On 1/15/2020 at 10:29 AM, ndiaga said:

Yes,  in 1.7.x    you can use:


{assign  var=currency  value=Context::getContext()->currency}

{Toools::displayPrice($yourprice,$currency)}

 

be careful, it's Tools::

not Toools::

 

Thanks

Mdesign49

Mdesign49

On 1/15/2020 at 10:29 AM, ndiaga said:

Yes,  in 1.7.x    you can use:


{assign  var=currency  value=Context::getContext()->currency}

{Toools::displayPrice($yourprice,$currency)}

 

be careful, it's Tools::

not Toools::

Mdesign49

Mdesign49

On 1/15/2020 at 10:29 AM, ndiaga said:

Yes,  in 1.7.x    you can use:


{assign  var=currency  value=Context::getContext()->currency}

{Toools::displayPrice($yourprice,$currency)}

 

Ok but in 1.7.6, Tools::displayPrice() is deprecated

and be careful, it's Tools::

not Toools::

Mdesign49

Mdesign49

On 1/15/2020 at 10:29 AM, ndiaga said:

Yes,  in 1.7.x    you can use:


{assign  var=currency  value=Context::getContext()->currency}

{Toools::displayPrice($yourprice,$currency)}

 

Yes, if you use Tools and not Toools ;)

Thanks ! 

×
×
  • Create New...