Manual email for "Order shipped" email template

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
sasireka.m
Ensign (ENS)
Ensign (ENS)
Posts: 10
Joined: Thu Jan 27, 2011 11:13 pm

Manual email for "Order shipped" email template

Post by sasireka.m » Thu Jan 27, 2011 11:27 pm

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.

User avatar
triplw
Commander (CMDR)
Commander (CMDR)
Posts: 144
Joined: Sat Jan 12, 2008 5:34 pm
Contact:

Re: Manual email for "Order shipped" email template

Post by triplw » Fri Jan 28, 2011 8:02 am

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.

sasireka.m
Ensign (ENS)
Ensign (ENS)
Posts: 10
Joined: Thu Jan 27, 2011 11:13 pm

Re: Manual email for "Order shipped" email template

Post by sasireka.m » Sun Jan 30, 2011 9:21 pm

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. :(

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Manual email for "Order shipped" email template

Post by mazhar » Fri Feb 04, 2011 9:04 am

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.

sasireka.m
Ensign (ENS)
Ensign (ENS)
Posts: 10
Joined: Thu Jan 27, 2011 11:13 pm

Re: Manual email for "Order shipped" email template

Post by sasireka.m » Sat Feb 05, 2011 12:56 am

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.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Manual email for "Order shipped" email template

Post by mazhar » Mon Feb 07, 2011 4:27 am

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?

Post Reply