I am implementing multi currency setup, I overrided IPricingService and ITaxService
and when calling CatalogLibrary.CaclulatePrice(product) I get "Items cannot be added with different currency 'EUR' from billing currency 'DKK' of order."
I tried to fix that by calling
CatalogLibrary.ChangePriceGroup(myNewPriceGroup, true) and now I am getting SecurityExcepion
Current catalog '...' does not allow price group 'eur'. If you wish to override using the price group on the catalog please change the allowed price groups on the catalog in the back-end.
In the backend I see that I can only assign one Currency to the catalog but I want to have all my currencies bound to the same catalog.
The first error you are having, is the result of an unconverted basket, where you are trying to add a new product to. This fails because the current pricegroup's currency doesnt match the baskets, thowing the exception: "Items cannot be added with different currency 'EUR' from billing currency 'DKK' of order."
To fix this, you need to ensure that users can't change pricegroup to a pricegroup that isn't a part of the "allowedPricegroups" on the catalog.
Furthermore is sounds like you need to configure the pricegroups on the catalog itself. (by your description you are inspecting the catalogGroup above the catalogs).
Hope it makes sense - otherwise I can make a image guide :)
Multicurrency setup
Hi ucommerce,
I am implementing multi currency setup, I overrided IPricingService and ITaxService and when calling CatalogLibrary.CaclulatePrice(product) I get "Items cannot be added with different currency 'EUR' from billing currency 'DKK' of order."
I tried to fix that by calling
CatalogLibrary.ChangePriceGroup(myNewPriceGroup, true) and now I am getting SecurityExcepion
Current catalog '...' does not allow price group 'eur'. If you wish to override using the price group on the catalog please change the allowed price groups on the catalog in the back-end.
In the backend I see that I can only assign one Currency to the catalog but I want to have all my currencies bound to the same catalog.
How can I fix this? Thanks in advance.
Hi Davor.
The first error you are having, is the result of an unconverted basket, where you are trying to add a new product to. This fails because the current pricegroup's currency doesnt match the baskets, thowing the exception: "Items cannot be added with different currency 'EUR' from billing currency 'DKK' of order."
To fix this, you need to ensure that users can't change pricegroup to a pricegroup that isn't a part of the "allowedPricegroups" on the catalog.
Furthermore is sounds like you need to configure the pricegroups on the catalog itself. (by your description you are inspecting the catalogGroup above the catalogs).
Hope it makes sense - otherwise I can make a image guide :)
OMG, that was so stupid of me, yes, I was looking at the catalog group and not the catalog itself. Thank you very much.
is working on a reply...