Copied to clipboard

Flag this post as spam?

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


  • Alessandro 11 posts 84 karma points
    Dec 15, 2016 @ 11:23
    Alessandro
    0

    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.

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Dec 15, 2016 @ 16:24
    Rusty Swayne
    0

    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 ...

  • Alessandro 11 posts 84 karma points
    Dec 19, 2016 @ 15:41
    Alessandro
    1

    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

Please Sign in or register to post replies

Write your reply to:

Draft