Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Davor Zlotrg 6 posts 96 karma points
    Jun 23, 2014 @ 00:23
    Davor Zlotrg
    0

    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.

  • Nickolaj Lundgreen 233 posts 1132 karma points
    Jun 23, 2014 @ 09:28
    Nickolaj Lundgreen
    100

    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 :)

  • Davor Zlotrg 6 posts 96 karma points
    Jun 23, 2014 @ 10:00
    Davor Zlotrg
    0

    OMG, that was so stupid of me, yes, I was looking at the catalog group and not the catalog itself. Thank you very much.

Please Sign in or register to post replies

Write your reply to:

Draft