Page 1 of 1

dispalying currency for cutom products

Posted: Thu May 21, 2009 3:04 am
by tonz
Hi,

We would like to show our prices in EUROs as well. We saw that Ablecommerce have a great support for adding currencies. However we have customized our store and we have some products where we calculate the USD price from code, so the price is not in the database. (We choose variable price for the product and cutomized the buyproductdialog, so that it shows our custom pricing.

So our problem is that when we add Euro currency to the store, prices are shown in Euro but our custom prices are still in USD.

We would like to know, how to retrieve current currency info and setting, like currency symbol,conversion rate, so that we could use in our custom code to modify the USD prices accordingly.

Thanks for your time and help,

Tony
http://shop.faxproducts.com

Re: dispalying currency for cutom products

Posted: Thu May 21, 2009 8:59 am
by mazhar
You can use Token.Instance.Store.BaseCurrency to get base currency information. It will return to you all information you needed via currency object. If you want to check current user's selected currency then it would be Token.Instance.User.UserCurrency.

Re: dispalying currency for cutom products

Posted: Wed May 27, 2009 2:28 am
by tonz
Thanks Mazhar again for your pointers. I will let you and the forumers know how we will succeed.

Tony