Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

Disable rounding on pricing

$
0
0

Currently we have a webshop where price information is coming in with high precision (5 digits). This is due to the fact that the source systems are calculating prices per 1000 units and we have to do some recalculations. We've already tested this and EPI seems to be able to handle this "almost" properly. However there are a few places where rounding takes place:

  • OrderFormCalculator
  • ShippingCalculator
  • DiscountUpdater

For both the OrderFormCalculator and ShippingCalculator we were able to intercept these and implement a custom calculation without rounding. This works like a charm. However the DiscountUpdater seems not be interceptable and causes that VAT is calculated on rounded product prices, which gives rounding differences at the end. Is there a way to intercept or change the behavior of the DiscountUpdater to not round the pricing in the intermediate calculations? In our system we only want to round the final price which needs to be payed by the customer.

Note: We're using the latest EPIServer Commerce and CMS version.


Viewing all articles
Browse latest Browse all 9076

Trending Articles