VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: Djirko on August 19, 2014, 16:54:36 PM

Title: Price in two currencies
Post by: Djirko on August 19, 2014, 16:54:36 PM
Hello,
EURO is coming to my country and for some period of time all shops will have to show prices in two currencies at the same time. I know that virtuemart has currency selector, but it doesnt meet the requirments and we need to show two prices at the same time for each product. I didnt find any extension or thread in this forum, which could help me solve this, so starting a new one. Maybe someone has a solution for this.
Title: Re: Price in two currencies
Post by: GJC Web Design on August 19, 2014, 22:33:37 PM
I guess your exchange rate will be relatively stable during the intro so just in your template over-rides multiply your current local currency prices by the rate and display..
Title: Re: Price in two currencies
Post by: Djirko on August 20, 2014, 09:06:41 AM
Quote from: GJC Web Design on August 19, 2014, 22:33:37 PM
I guess your exchange rate will be relatively stable during the intro so just in your template over-rides multiply your current local currency prices by the rate and display..
Yes, you are right, exchange rate will be stable during all this period. I understand how this can be achieved by modifing my template, but just theoretically. I lack some knowledge in programming, so maybe someone could help me with that. Basically i would need to modify few files where final price is displayed, right?
It would be like "finalprice" ("finalprice"/"fixed exchange rate"), right?
Title: Re: Price in two currencies
Post by: GJC Web Design on August 20, 2014, 10:06:28 AM
you just take the price you have  and multiply it by a factor that gives you the correct Euro price. Then echo it.

basic php