Different currency for different products in eCommerce?

Dcode warner asked on June 28, 2016 23:50

Is it possible to have products with different currencies for different products.

Example USD and Pounds?

My shopping cart is mostly in pounds, however the items being sold caters to both the US and UK and are in their respect currency for purchasing?

I actually want the product to display (before checkout) as pounds for certain items.

Recent Answers


Brenden Kehren answered on June 29, 2016 00:06

Not sure what version you're using but here is some documentation for v8 on currencies and setting up your store as well as some other definitions as to what you can and cannot have.

0 votesVote for this answer Mark as a Correct answer

Dawid Jachnik answered on June 29, 2016 11:53

Hello,

You can't do it OOTB.

You need to do custom method/macro which use "CMS.Ecommerce.CurrencyInfoProvider.GetFormattedPrice" function, for example

var currencyInfo = CurrencyInfoProvider.GetCurrencyInfo("CurrencyName", CMS.SiteProvider.SiteContext.CurrentSiteName);
return CMS.Ecommerce.CurrencyInfoProvider.GetFormattedPrice(skuPrice, currencyInfo);

BTW. If you will use that, will be good for performance if you cache the currencyInfo object

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.