oCourse.MembDiscountMsg
Displays membership discount message with amount they can save by becoming a member.
ACEweb Routines/Templates:
Required Parameters:
None
Optional Parameters:
- Character return string. Use these expressions in your return string:
- (up to) - text inside parentheses will only be shown when there is more than one membership course in the list
- <<cAmtSaved> - amount saved by becoming a member
- <<cMemberList> - membership course(s)
Defaults to: [You could save (up to) <<cAmtSaved> on this course by becoming a member of <<cMemberList>]
- AmtSaved return value: expression defining the cAmtSaved output:
- lnBigDiscount – if multiple discounts are available, this represents the largest possible discount
- lnSmallDiscount – minimum discount
Defaults to: TRANSFORM(lnBigDiscount,[$$$$.99])
- Character return string. Message returned if no memberships are available. Defaults to an empty string.
- Logical .t.: the custom vocabulary terms will be applied to the output string. Required if
Examples
##oCourse.MembDiscountMsg()## returns You could save [$amtsaved] on this course by becoming a member of [Membership Course Title]; with $amtsaved being the most the user can save.
##oCourse.MembDiscountMsg([Save <<cAmtSaved> (or more) on this course with a <<cMemberList>],"TRANSFORM(lnSmallDiscount,[$$$$.99])")+[</p>],[])## returns Save [$amtsaved] on this course by becoming a member of [Membership Course Title]; with $amtsaved being the least the user can save.