Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Multi Currency - Exhange rate and currency webpart View modes: 
User avatar
Certified Developer v7
Certified  Developer v7
Gitesh - 1/24/2012 4:03:28 PM
   
Multi Currency - Exhange rate and currency webpart
Hi Guys,

I have been working on a E-commerce site with an multi currency functionality in it.

I can see that I can update exchange tables and it works nice. But I have 2 questions on it:

1: How can we get the exhange rates updated dynamically? e.g: linked online with a exchange rate site.

2: We have a multi currency dropdown in the shopping cart, can we have a dropdown throughout the whole website?

Thanks
Gitesh Shah

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 2/3/2012 9:15:44 PM
   
RE:Multi Currency - Exhange rate and currency webpart
Hi Gitesh,

1) This has been discussed some time ago in our Forums:
devnet.kentico.com/Forums.aspx?forumid=36&threadid=9954
That Pavel's suggestion is generally still valid.

There are some connectors for taxes (Avalara) available at our Marketplace, but not directly for any exchange rate service.

2) Is this dropdown a custom one or our default control?

To switch the currency of the current shopping cart, which will have effect on a prices in product listings too, you could use following code:

if (ECommerceContext.CurrentShoppingCart == null)
{
ShoppingCartInf cart = ShoppingCartInfoProvider.CreateShoppingCartInfo(CMSContext.CurrentSiteID);
cart.ShoppingCartCurrencyID = <ID of a currency you want to use>;
ECommerceContext.CurrentShoppingCart = cart;
}
else
{
ECommerceContext.CurrentShoppingCart.ShoppingCartCurrencyID = <ID of a currency you want to use>;
}


Any further details would help.
Please let me know if I can be of any further assistance.

Regards,
Zdenek

User avatar
Certified Developer v7
Certified  Developer v7
Gitesh - 2/6/2012 3:12:27 PM
   
RE:Multi Currency - Exhange rate and currency webpart
Thanks Zdenek,

I will try that code and will get back to you.

Thanks
Gitesh Shah