CommerceFrameworkBase.SanaTexts.GetSanaText("ShopAccountNameLabel", "Shop Account"));
use Static class
ExtendedSanaTextKeys.CutOffTimePassed public static class ExtendedSanaTextKeys { public const string CutOffTimePassed = "Validation_CutOff"; }
and Add text to SanaText.resx
<data name="Validation_CutOff" xml:space="preserve"> <value>Requested delivery date is invalid or the cut off time has been missed.</value> </data>
Sana Text in Html
@Sana.SimpleText("ViewOrderDetails")
Rich Text
@Sana.RichText("YouAreCurrentlyEditingOrder")
use with replace tags.
@Sana.SimpleText("YourFirstPossibleDeliveryDate", "Your first possible delivery date is [FirstPossibleDeliveryDate]").iReplace("[FirstPossibleDeliveryDate]", nextDeleverydate.AsHtml(encode: true))
string message = CommerceFrameworkBase.SanaTexts.GetSanaText("CustomerSwitchMessage").Replace("[SubAccountEmailAddress]", currentShopAccount.Email)
.Replace("[CustomerAccountIDorigin]", currentShopAccount.ReferenceId)
.Replace("[CustomerAccountNameOrigin]", currentCustomer.Name)
.Replace("[CustomerAccountIDNew]", newCustomerId)
.Replace("[CustomerAccountNameNew]", newCustomerName);