dispalying currency for cutom products

This forum is for questions and issues arising from the use of AbleCommerce 7.0 outside the United States. International purchases of AbleCommerce 7.0 are way up. Thank you!
Post Reply
User avatar
tonz
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 48
Joined: Thu Mar 13, 2008 4:08 am

dispalying currency for cutom products

Post by tonz » Thu May 21, 2009 3:04 am

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

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: dispalying currency for cutom products

Post by mazhar » Thu May 21, 2009 8:59 am

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.

User avatar
tonz
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 48
Joined: Thu Mar 13, 2008 4:08 am

Re: dispalying currency for cutom products

Post by tonz » Wed May 27, 2009 2:28 am

Thanks Mazhar again for your pointers. I will let you and the forumers know how we will succeed.

Tony

Post Reply