Rank: Advanced Member
Groups: HelpDesk, Developers Joined: 11/9/2018(UTC) Posts: 564
Thanks: 122 times Was thanked: 26 time(s) in 25 post(s)
|
I need to format a date passed as a parameter to an email template. I see references to some sort of nVelocity helper routine $helper.LSCurrencyFormat() but I don't know if that same helper will work for dates.
How would I format a date value, or where is the $helper code?
|
|
|
|
Rank: Advanced Member
Groups: Administrators, Developers, Registered, HelpDesk, Authorized User, Admin, System Joined: 10/11/2018(UTC) Posts: 110
Thanks: 19 times Was thanked: 18 time(s) in 18 post(s)
|
Quote:I see references to some sort of nVelocity helper routine $helper.LSCurrencyFormat() but I don't know if that same helper will work for dates. No, the LSCurrencyFormat helper will not work for date formatting. This is a currency formatter. The code for this extension is under CommerceBuilder/Extensions/DecimalExtension.cs. There is a nvelocity accessible for datetime CommerceBuilder/Common/DateTimeExtension.cs but this has limited functions. You can add your function inside this class and use from there. Quote:How would I format a date value, or where is the $helper code? The $helper is added to the VelocityContext which is available for all nvelocity accessible classes. You might also format your date something like $date.Tostring("G") in the email template.
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close