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; } }
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.
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?
It might be casing. Try "en-US" instead.
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!
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 :)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.