VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: benedex82 on June 21, 2013, 14:58:50 PM

Title: (SOLVED) Change currency based on user field
Post by: benedex82 on June 21, 2013, 14:58:50 PM
Hello...

I need to change the currency accordingly to a field in the user profile. I have created a drop-down field with currencies but I need to connect it to the global currency used in VM. (I need this on the backend because it will be handled by the administrator)

I need to know:

- how to retrieve the user field (I've tried something but I've not found any method to retrieve that)
- how to change the global currency (I've look into class CurrencyDisplay but without results...)


Thank you very much