Developer forum

Forum » Development » Cannot change currency in Dynamicweb.Ecommerce.dll v1.6.48

Cannot change currency in Dynamicweb.Ecommerce.dll v1.6.48

Anders Ebdrup
Anders Ebdrup
Reply

Dear Dynamicweb,

In the current version of Dynamicweb.Ecommerce.dll v1.6.48 it is not possible to change currency by using "?CurrencyCode=XXX" without getting this error:

Dynamicweb.Ecommerce.Prices.PriceInfoCurrencyException: Attempt to aritmatic with two prices of different currency: DKK and GBP with the amounts 199.95 and 0 at Dynamicweb.Ecommerce.Prices.PriceInfo.Add(IPriceInfo info) at Dynamicweb.Ecommerce.Prices.PriceInfo.Add(IPriceReferenceInfo info) at Dynamicweb.Ecommerce.Frontend.Renderer.RenderOrderLine(OrderLine orderLine, Template template) at Dynamicweb.Ecommerce.Frontend.Renderer.RenderOrderLines(OrderLineCollection orderLines, Template parentTemplate, String loopName) at Dynamicweb.Ecommerce.Frontend.Renderer.RenderOrderDetails(Template template, Order order, Boolean extendedProperties, OrderTemplateExtenderContext orderContext) at Dynamicweb.Ecommerce.Cart.Renderer.RenderStep(Order order, PageView pageView, IEnumerable`1 validationErrors, IEnumerable`1 removedProductNames, Boolean useNewsletterSubscription, String imagePatternProductCatalog, Boolean selectAllPayments, IEnumerable`1 payments, Boolean selectAllDeliveries, IEnumerable`1 deliveries, Template template) at Dynamicweb.Ecommerce.Cart.Renderer.RenderStep(Order order, ModuleSettings settings, Int32 stepIndex, PageView pageView, IEnumerable`1 validationErrors, IEnumerable`1 removedProductNames) at Dynamicweb.Ecommerce.Cart.Frontend.RenderStep(Order order, Int32 stepIndex, IEnumerable`1 removedProductNames, IEnumerable`1 errors) at Dynamicweb.Ecommerce.Cart.Frontend.GetContent()

 

We can see that it is working in v1.6.38.

I really hope that this issue can be fixed soon?

 

Best regards, Anders


Replies

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply
This post has been marked as an answer

Hi Anders

This is bug #67672 in the 9.6.9+ versions. We will fix this as soon as possible.

Sorry for the inconvenience caused

Kind Regards
Dynamicweb Support
Kristian Kirkholt

Votes for this answer: 1

 

You must be logged in to post in the forum