Page 1 of 1
Manual email for "Order shipped" email template
Posted: Thu Jan 27, 2011 11:27 pm
by sasireka.m
Hi, I am new to ablecommerce and I need to trigger emails manually for “Order shipped” and “Order shipped partial” email template. Please explain how the emails are triggered from the website and in which page I have to include the coding for those templates.
I am using ablecommerce 7.0.5.14053 version. Please help me

.
Thanks in advance.
Re: Manual email for "Order shipped" email template
Posted: Fri Jan 28, 2011 8:02 am
by triplw
Click on the order in Admin. On the View order screen click on the customer's email link under the Bill To section.
You will be able to select the template you need from the dropdown.
Re: Manual email for "Order shipped" email template
Posted: Sun Jan 30, 2011 9:21 pm
by sasireka.m
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.

Re: Manual email for "Order shipped" email template
Posted: Fri Feb 04, 2011 9:04 am
by mazhar
You need to place that code on page from where shipments are triggered. I think have a look at the code of ~/Admin/Orders/Shipments/ShipOrder.aspx page. Most probably you need to place this code in ShipButton_Click function.
Re: Manual email for "Order shipped" email template
Posted: Sat Feb 05, 2011 12:56 am
by sasireka.m
yes mazhar, I had included the coding to shipbutton_click() function after the line of _OrderShipment.Ship();. But the shipment content and status was shown wrongly in the mail.
Please let me know whether it possible to create my own class as "Nveloctiy" variable and how to implement this.
Thanks in advance.
Re: Manual email for "Order shipped" email template
Posted: Mon Feb 07, 2011 4:27 am
by mazhar
I am not sure about custom classes. Go give it a try and see what NVelocity says about this. Secondly what went wrong with shipment content and status?