Packing Slip - Customer Email Address

Store UI, layout, design, look and feel; Discussion on the customer facing pages of your online store. Cascading Style Sheets, Themes, Scriptlets, NVelocity and the components in the ConLib directory.
Post Reply
DonAshby
Commander (CMDR)
Commander (CMDR)
Posts: 172
Joined: Mon Oct 15, 2007 2:53 pm
Location: Palo Alto, CA
Contact:

Packing Slip - Customer Email Address

Post by DonAshby » Mon Aug 11, 2008 10:48 am

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 :?:

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Packing Slip - Customer Email Address

Post by jmestep » Mon Aug 11, 2008 3:31 pm

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

afm
Captain (CAPT)
Captain (CAPT)
Posts: 339
Joined: Thu Nov 03, 2005 11:52 pm
Location: Portland, OR
Contact:

Re: Packing Slip - Customer Email Address

Post by afm » Mon Aug 11, 2008 4:19 pm

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.
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing

DonAshby
Commander (CMDR)
Commander (CMDR)
Posts: 172
Joined: Mon Oct 15, 2007 2:53 pm
Location: Palo Alto, CA
Contact:

Re: Packing Slip - Customer Email Address

Post by DonAshby » Thu Aug 14, 2008 11:42 am

Thanks Judy,

We now have it on the packing slip. Do you know how to do it for the invoice as well?

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

Re: Packing Slip - Customer Email Address

Post by mazhar » Thu Aug 14, 2008 12:27 pm

You can edit the following function of the Invoice

Code: Select all

 protected string GetShipToAddress(object dataItem)
and locate locate the following line of code

Code: Select all

if (!addressList.Contains(shipTo)) addressList.Add(shipTo);
and make it look like

Code: Select all

if (!addressList.Contains(shipTo))
            {
                addressList.Add(shipTo);
                addressList.Add(shipment.ShipToEmail);
            }

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Packing Slip - Customer Email Address

Post by jmestep » Thu Aug 14, 2008 2:18 pm

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

Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Re: Packing Slip - Customer Email Address

Post by Mike718NY » Tue Nov 18, 2008 12:56 pm

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 &nbsp; T O</td>
<td valign="middle" width="50%"><%# GetBillToAddress(Container.DataItem) %>
<br /><%# GetEmailPhone(Container.DataItem) %></td>
....
looks like:

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

Re: Packing Slip - Customer Email Address

Post by mazhar » Wed Nov 19, 2008 8:50 am

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.

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

Re: Packing Slip - Customer Email Address

Post by triplw » Thu Apr 16, 2009 7:21 am

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.

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

Re: Packing Slip - Customer Email Address

Post by mazhar » Thu Apr 16, 2009 9:47 am

Read following thread
viewtopic.php?f=42&t=9146

Vintegrated
Ensign (ENS)
Ensign (ENS)
Posts: 5
Joined: Tue Jan 25, 2011 3:39 pm

Re: Packing Slip - Customer Email Address

Post by Vintegrated » Thu Mar 03, 2011 8:30 am

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

Post Reply