That's a good idea and think it's probably pretty straight forward to do that by making it a per request LAZY singleton rather than a globally static singleton.
However, there are other deficiencies that we've identified that simply arise from using decimals as price/cost values and we're actually moving toward obsoleting the CurrencyContext in V3 where we've introduced the Noda Money library.
It works really well and handles currency conversions, math operations and culture based currency output formats really nicely. In V3, all money properties have been replaced with the NodaMoney Money type.
Also interesting, we have started looking at multi-store for V3 where we have have a proper Store object in Merchello.Models ...
Pluggable CurrencyContext
Hi again Rusty,
in our opinion would be very useful to add CurrencyContext to the pluggable list of classes.
This way anyone could implement his own one very easily, adding for example multi-currency support if needed.
In our multi-store scenario, instead, would be a currency-per-store context.
Thanks, A.
Hi Alessandro,
That's a good idea and think it's probably pretty straight forward to do that by making it a per request LAZY singleton rather than a globally static singleton.
However, there are other deficiencies that we've identified that simply arise from using decimals as price/cost values and we're actually moving toward obsoleting the CurrencyContext in V3 where we've introduced the Noda Money library.
http://www.nodamoney.org/
It works really well and handles currency conversions, math operations and culture based currency output formats really nicely. In V3, all money properties have been replaced with the NodaMoney Money type.
Also interesting, we have started looking at multi-store for V3 where we have have a proper Store object in Merchello.Models ...
Thx Rusty,
we are preparing a list of questions to submit to you in order to understand if Mechello still fits our requirements. We really hope so.
We we'll ask you a quote through the contact section of Merchello website.
Thank you in advance, Alessandro
is working on a reply...