The pattern formatter is obsolete (but still available). However, you are using the razor formatted editor so the patterns you're showing in your example are irrelevant.
Could you provide a sample OrderConfirmation template for me? I didn't know how to place a the brackets "{{}}" inside my cshtml for it to replace with invoice information.
@inherits Merchello.Web.Mvc.MerchelloHelperViewPage<Merchello.Core.Models.MonitorModels.IPaymentResultMonitorModel>
@using Merchello.Core
@using Merchello.Core.Models
@*
MerchelloHelperViewPage<T> inherits from UmbracoViewPage<t> and exposes the MerchelloHelper as 'Merchello'
Example usage: var product = Merchello.TypedProductContent(YOURPRODUCTKEY);
*@
Dear @Model.Invoice.BillToName
<p>Thank you for your order.</p>
<ul>
@foreach (var item in Model.Invoice.Items)
{
<li>@item.Name + @item.Price.AsFormattedCurrency()</li>
}
</ul>
<p>Thanks!</p>
I have been developing a website using umbraco and merchello and I have been fortunate enough that there is enough documentation for every circumstance I have needed.
I want to contribute a little to this community. I have noticed that many request a template for a 'merchello' invoice. So I share the one I developed, with a little style that looks great, modesty aside.
I hope it will be useful for someone. Here a sample, and later the code.
Merchello - Notification on Order Confirmation
Hello,
I have setup an SMTP Notification Provider and add a new message on Notification:
In my email template, I have added some lines:
In my class, I have use Notification to send a notification email to customer:
From here, I don't know how to update parameters from my email template like {{shippingaddress.name}} and {{shippingaddress.street}}.
So how can I update the parameters in my email template before seding to customer?
The pattern formatter is obsolete (but still available). However, you are using the razor formatted editor so the patterns you're showing in your example are irrelevant.
Simply use razor code in the view.
View is located in:
/Views/Merchello/Notifications/
Could you provide a sample OrderConfirmation template for me? I didn't know how to place a the brackets "{{}}" inside my cshtml for it to replace with invoice information.
You don't use the
{{}}
when dealing with razor.Hello everyone.
I have been developing a website using umbraco and merchello and I have been fortunate enough that there is enough documentation for every circumstance I have needed.
I want to contribute a little to this community. I have noticed that many request a template for a 'merchello' invoice. So I share the one I developed, with a little style that looks great, modesty aside.
I hope it will be useful for someone. Here a sample, and later the code.
Note: In the code you can edit the colors.
Josué González - High Five, You Rock!!!
is working on a reply...