Thanks triplw.
But I want to customize the mail template so I need to create my own template for "order shipped" & "order shipped partial" template(because I need to include some nvelocity variable in the template). Please let me know in which page I have to include the code for sending a mail and where the mails are triggered from website.
I had included below coding to the admin/orders/shipments/shiporder.aspx.cs page under the ShipButton_Click() event but the shipment items are shown wrongly. Please advise.
EmailTemplateCollection emailTemplates = EmailTemplateDataSource.LoadForCriteria(" Name = 'Order Shipped Partial' ");
if (emailTemplates.Count > 0)
{
emailTemplates[0].Parameters.Add("taxenabled", TaxEnabled);
emailTemplates[0].Parameters.Add("store", Token.Instance.Store);
emailTemplates[0].Parameters.Add("order", _Order);
emailTemplates[0].Parameters.Add("customer", _Order.User);
emailTemplates[0].Parameters.Add("payments", _Order.Payments);
emailTemplates[0].Send();
}
Please help me.
