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.

  • Mads Jørgensen 74 posts 226 karma points
    Jun 24, 2013 @ 09:11
    Mads Jørgensen
    0

    CommerceLibrary:FormatCurrency() thousands separator

    Hey All,

    Found a possible bug in software:

    When using the XSLT extension method CommerceLibrary:FormatCurrency() everything is fine, but not getting any thousands separator.

    When i Razor using @price.Price.Value.ToCurrencyAmount() it's all fine, and perrty.

    Thing is, that I'm using XSLT quite a lot, and it seems there's lack of functionality or lack of mapping the default .NET functionality to uCommerce XSLT snippets.

    Is there somehow to fix it?

    I'd really like to keep using native uCommerce functionality for maintenance reasons, so other .NET and XSLT extension methods not really an option!

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jun 24, 2013 @ 14:27
    Søren Spelling Lund
    0

    Hi Mads,

    I have updated the XSLT library to format with thousands separator.

    Unfortnately the XSLT library doesn't have enough context to supply a current symbol so I'm not able to include that without breaking backwards compat in a major way.

    Let me know you'd like it though and I'll look into including it with uCommerce 4 due out soon.

    The update will be included with uCommerce 3.6.3.

    Sorry about the inconvenience.

  • Mads Jørgensen 74 posts 226 karma points
    Jun 25, 2013 @ 08:24
    Mads Jørgensen
    0

    Hi Søren,

    Sounds as a fine solution for me :-)

    Can I get a dll exposing the new extension method? I'm in a bit of a hurry!

    The current symbol isn't that important to me :-)

Please Sign in or register to post replies

Write your reply to:

Draft