Jump to content

Customized code on product.tpl by selected currency


PovkaREAL

Recommended Posts

Hello,

I am displaying some customized information on product.tpl:

<font size="3" color="red">
(
 <span id="comb_label">{math equation="(x/y)" x=$product->getPrice(true, $smarty.const.NULL) y=3.4528 format="%.2f"}</span>
€ )
</font>

It is printing price in Euro near my default currency Lithuanian Litas (LTL). LTL is only one currency on my store. But now I want to add some new currencies (€ and $) to my store. I want to use this code only then LTL is selected. How to do this?

 

Thanks for help!

 

Best regards,

Povilas

Belts.lt

Edited by PovkaREAL (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...