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.

  • Matt Barlow | jacker.io 164 posts 740 karma points c-trib
    Nov 28, 2011 @ 18:26
    Matt Barlow | jacker.io
    0

    uCommerce - shipping method descriptions

    Am using v4.71 Umbraco and uCommerce 2.1.

    I checked the culture code and it's correct, checked my shipping methods have descriptions and the delivery text set and saved.. but it's not getting the descriptions in my Razor macro?

    @using UCommerce.EntitiesV2
    @{
    var shippingmethods = ShippingMethod.All();
    foreach(var shippingMethod in shippingmethods)
    {
    @shippingMethod.GetDescription("en-us").DeliveryText;
    }
    }
  • Søren Spelling Lund 1797 posts 2786 karma points
    Nov 29, 2011 @ 10:48
    Søren Spelling Lund
    0

    It might be casing. Try "en-US" instead.

  • Matt Barlow | jacker.io 164 posts 740 karma points c-trib
    Nov 29, 2011 @ 12:41
    Matt Barlow | jacker.io
    0

    OK, that fixed it. I'm using it all in lowercase in the product.GetDescription("en-us").LongDescription method and it worked, that's why I was a little confused when it didn't work here.

    Thanks!

  • Søren Spelling Lund 1797 posts 2786 karma points
    Nov 29, 2011 @ 12:52
    Søren Spelling Lund
    0

    As mentioned on Twitter the behavior will be changed in the next release. Going forward they will all be case insensitive as you'd expect :)

Please Sign in or register to post replies

Write your reply to:

Draft