Packing Slip - Customer Email Address
-
- Commander (CMDR)
- Posts: 172
- Joined: Mon Oct 15, 2007 2:53 pm
- Location: Palo Alto, CA
- Contact:
Packing Slip - Customer Email Address
Hi Everyone,
Has anyone figured out how to include the customer's email address to print on the packing slip that prints out of the Dashboard when you print all the orders. It would also help if it was on the Invoice that prints. We need the email address to send shipping information to the customer from Shipworks.
Also, has anyone figured out how to do an order feed out of the database ( or dashboard ) in a format that we can export to our Shipworks shipping program?
Is there any way to interleave the Packing Slip with the Invoice so they come out of the printer together?
Thanks, Don
Has anyone figured out how to include the customer's email address to print on the packing slip that prints out of the Dashboard when you print all the orders. It would also help if it was on the Invoice that prints. We need the email address to send shipping information to the customer from Shipworks.
Also, has anyone figured out how to do an order feed out of the database ( or dashboard ) in a format that we can export to our Shipworks shipping program?
Is there any way to interleave the Packing Slip with the Invoice so they come out of the printer together?
Thanks, Don
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: Packing Slip - Customer Email Address
On Admin/Orders/Print PackSlips.aspx, put this:
<asp:Label ID="ShipTo" runat="server" Text='<%#((OrderShipment)Container.DataItem).FormatToAddress()%>'></asp:Label>
Add this line -----------><br/><asp:Label ID="ShipToEmail" runat="server" Text='<%#Eval("ShipToEmail") %>'></asp:Label>
Shipworks ---You can pm me or email me with your specs and I'll look at it. I just did a .csv export of order data for someone and learned a lot from coding that.
<asp:Label ID="ShipTo" runat="server" Text='<%#((OrderShipment)Container.DataItem).FormatToAddress()%>'></asp:Label>
Add this line -----------><br/><asp:Label ID="ShipToEmail" runat="server" Text='<%#Eval("ShipToEmail") %>'></asp:Label>
Shipworks ---You can pm me or email me with your specs and I'll look at it. I just did a .csv export of order data for someone and learned a lot from coding that.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Re: Packing Slip - Customer Email Address
Don,
I have a competing product called Shipper 3.0 that works directly with AbleCommerce 7:
Shipper 3.0 Release Candidate 1
You can easily interleave an invoice with a packing slip. Please let me know if you have any questions about Shipper 3.0.
I have a competing product called Shipper 3.0 that works directly with AbleCommerce 7:
Shipper 3.0 Release Candidate 1
You can easily interleave an invoice with a packing slip. Please let me know if you have any questions about Shipper 3.0.
-
- Commander (CMDR)
- Posts: 172
- Joined: Mon Oct 15, 2007 2:53 pm
- Location: Palo Alto, CA
- Contact:
Re: Packing Slip - Customer Email Address
Thanks Judy,
We now have it on the packing slip. Do you know how to do it for the invoice as well?
We now have it on the packing slip. Do you know how to do it for the invoice as well?
Re: Packing Slip - Customer Email Address
You can edit the following function of the Invoice
and locate locate the following line of code
and make it look like
Code: Select all
protected string GetShipToAddress(object dataItem)
Code: Select all
if (!addressList.Contains(shipTo)) addressList.Add(shipTo);
Code: Select all
if (!addressList.Contains(shipTo))
{
addressList.Add(shipTo);
addressList.Add(shipment.ShipToEmail);
}
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: Packing Slip - Customer Email Address
mazhar, I think I tried that and it displayed the email on the same line as the country and I couldn't get it to go to the next line. Any help on this?
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Re: Packing Slip - Customer Email Address
I added the Email and Phone number to the "SOLD TO" side of the Invoice like this:
Add this function:
protected string GetEmailPhone(object dataItem)
{
return ((Order)dataItem).BillToPhone.ToString() + "<br />" + ((Order)dataItem).BillToEmail.ToString();
}
Add the line "<br /><%# GetEmailPhone(Container.DataItem) %>" below :
<tr>
<td style="width:10px;text-align:center;font-weight:bold" valign="top">S O L D T O</td>
<td valign="middle" width="50%"><%# GetBillToAddress(Container.DataItem) %>
<br /><%# GetEmailPhone(Container.DataItem) %></td>
....
looks like:
Add this function:
protected string GetEmailPhone(object dataItem)
{
return ((Order)dataItem).BillToPhone.ToString() + "<br />" + ((Order)dataItem).BillToEmail.ToString();
}
Add the line "<br /><%# GetEmailPhone(Container.DataItem) %>" below :
<tr>
<td style="width:10px;text-align:center;font-weight:bold" valign="top">S O L D T O</td>
<td valign="middle" width="50%"><%# GetBillToAddress(Container.DataItem) %>
<br /><%# GetEmailPhone(Container.DataItem) %></td>
....
looks like:
Re: Packing Slip - Customer Email Address
Yes <br /> will do the trick in both ways either you place it in HTML part or just append just before the Email information string.
Re: Packing Slip - Customer Email Address
This post was great helping me add the customer's phone and email to the printable invoice. I just need help with a couple more changes.
I need to have the order comments print on the Admin Print Invoice.
Also, is there a way to make the invoice print with smaller fonts?
Thanks for your help.
I need to have the order comments print on the Admin Print Invoice.
Also, is there a way to make the invoice print with smaller fonts?
Thanks for your help.
Re: Packing Slip - Customer Email Address
Read following thread
viewtopic.php?f=42&t=9146
viewtopic.php?f=42&t=9146
-
- Ensign (ENS)
- Posts: 5
- Joined: Tue Jan 25, 2011 3:39 pm
Re: Packing Slip - Customer Email Address
This works very well for the order form, but the code for the packing slip is completely different and adding the same code doesn't work, at least I haven't been successful.
Any ideas?
Thanks
Dave
Any ideas?
Thanks
Dave