Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Editing Packing slips and invoices

Editing Packing slips and invoices

Locked

Views: 6,452

Results 1 to 20 of 21
This thread is locked. New replies are disabled.
23 Aug 2008, 4:34 PM
#1
dvdd127 avatar

dvdd127

New Zenner

Join Date:
Sep 2007
Posts:
74
Plugin Contributions:
0

Editing Packing slips and invoices

<table border="1" cellspacing="0" cellpadding="5">
          <tr>
            <td class="smallText" align="center"><strong>Date Added</strong></td>
            <td class="smallText" align="center"><strong>Customer Notified</strong></td>
            <td class="smallText" align="center"><strong>Status</strong></td>
            <td class="smallText" align="center"><strong>Comments</strong></td>

          </tr>
          <tr>
            <td class="smallText" align="center">08/21/2008 17:26:40</td>
            <td class="smallText" align="center"><img src="images/icons/tick.gif" border="0" alt="True" title=" True "></td>
            <td class="smallText">Processing</td>
            <td class="smallText">--none-- </td>
          </tr>

        </table>

A table like the one that I pasted code for above shows up on all packing slips and invoices I would like to know how to remove it.

Thank you in advance.

23 Aug 2008, 5:26 PM
#2
dvdd127 avatar

dvdd127

New Zenner

Join Date:
Sep 2007
Posts:
74
Plugin Contributions:
0

Re: Editing Packing slips and invoices

I did some more research after posting this and found the answer myself...

In the case anyone else is looking to do the same thing here is how I did it.
There are options in the configureation --> Shipping/Packaging

Display Order Comments on Admin Invoice
Display Order Comments on Admin Packing Slip

I simply set both of these to 0 and the box was gone form each document.

23 Aug 2008, 6:18 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Editing Packing slips and invoices

Thanks for the update that you did find the switch to manage the appearance of the tables rather than having to touch the code ... :smile:

28 Aug 2008, 1:59 PM
#4
dvdd127 avatar

dvdd127

New Zenner

Join Date:
Sep 2007
Posts:
74
Plugin Contributions:
0

Re: Editing Packing slips and invoices

Ajeh:

Thanks for the update that you did find the switch to manage the appearance of the tables rather than having to touch the code ... :smile:sure thing.. I knew there had to be some sort of switch for it!!!

8 Jan 2009, 10:03 PM
#5
dvdd127 avatar

dvdd127

New Zenner

Join Date:
Sep 2007
Posts:
74
Plugin Contributions:
0

Re: Editing Packing slips and invoices

I need to make some further edits to the packing slip and invoice.

on the invoice we would like to:
edit the shipping method to say.. shipping method & handling.

on the packing slip we would like to:
flip flop the bill/ship to addresses
add some lines before and after the bill/ship to addresses
and add a line to the address above the name.

I figure files need to be edited.. i just do not know which files.

thanks in advance.

9 Jan 2009, 7:43 PM
#6
dvdd127 avatar

dvdd127

New Zenner

Join Date:
Sep 2007
Posts:
74
Plugin Contributions:
0

Re: Editing Packing slips and invoices

can anyone help?

11 Jan 2009, 8:24 AM
#7
dvdd127 avatar

dvdd127

New Zenner

Join Date:
Sep 2007
Posts:
74
Plugin Contributions:
0

Re: Editing Packing slips and invoices

any help would be greatly appreciated.

11 Jan 2009, 2:54 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Editing Packing slips and invoices

You would have to customize the files for:
/admin/invoice.php
/admin/packingslip.php

The change on the shipping text in the totals from the method actually used to just text would require changing the section around:

<?php
  for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) {
    echo '          <tr>' . "\n" .
         '            <td align="right" class="'. str_replace('_', '-', $order->totals[$i]['class']) . '-Text">' . $order->totals[$i]['title'] . '</td>' . "\n" .
         '            <td align="right" class="'. str_replace('_', '-', $order->totals[$i]['class']) . '-Amount">' . $order->totals[$i]['text'] . '</td>' . "\n" .
         '          </tr>' . "\n";
  }
?>

To change the order of the addresses, look for:
zen_address_format

And you will see 3 sets:
$order->customer
$order->billing
$order->delivery

Change the order on them to match what you want ...

NOTE: Make an Order with 3 different addresses to test this so you do not goober things up ... :smile:

You might add border="1" to some of the tables to help you arrange where to add the text that you want ...

11 Jan 2009, 7:10 PM
#9
dvdd127 avatar

dvdd127

New Zenner

Join Date:
Sep 2007
Posts:
74
Plugin Contributions:
0

Re: Editing Packing slips and invoices

Ajeh:

You would have to customize the files for:
/admin/invoice.php
/admin/packingslip.php

The change on the shipping text in the totals from the method actually used to just text would require changing the section around:

<?php for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) { echo ' <tr>' . "\n" . ' <td align="right" class="'. str_replace('_', '-', $order->totals[$i]['class']) . '-Text">' . $order->totals[$i]['title'] . '</td>' . "\n" . ' <td align="right" class="'. str_replace('_', '-', $order->totals[$i]['class']) . '-Amount">' . $order->totals[$i]['text'] . '</td>' . "\n" . ' </tr>' . "\n"; } ?>
> 
> To change the order of the addresses, look for:
> zen_address_format
> 
> And you will see 3 sets:
> $order->customer
> $order->billing
> $order->delivery
> 
> Change the order on them to match what you want ...
> 
> NOTE: Make an Order with 3 different addresses to test this so you do not goober things up ... :smile:
> 
> You might add border="1" to some of the tables to help you arrange where to add the text that you want ...Thanks for the info. I was able to take care of most of my changes but I am still struggling to change the text next to shipping totals. Could you please provide me more assistance with that?
11 Jan 2009, 10:22 PM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Editing Packing slips and invoices

See if you can intercept the class ot_shipping which would be:
$order->totals[$i]['class']

and when that is: ot_shipping

you say something different ... :cool:

11 Jan 2009, 11:15 PM
#11
dvdd127 avatar

dvdd127

New Zenner

Join Date:
Sep 2007
Posts:
74
Plugin Contributions:
0

Re: Editing Packing slips and invoices

Ajeh:

See if you can intercept the class ot_shipping which would be:
$order->totals[$i]['class']

and when that is: ot_shipping

you say something different ... :cool:
Thanks for your help to this point. I have not written any code before so I am completely lost with what you are telling me to do.. aside from the fact that I can explain what needs to be done in plain english.

If the class is $order->totals[$i]['class'] then title should read 'Shipping Type' & Handling

Thanks again.

13 Jan 2009, 1:34 AM
#12
dvdd127 avatar

dvdd127

New Zenner

Join Date:
Sep 2007
Posts:
74
Plugin Contributions:
0

Re: Editing Packing slips and invoices

dvdd127:

Thanks for your help to this point. I have not written any code before so I am completely lost with what you are telling me to do.. aside from the fact that I can explain what needs to be done in plain english.

If the class is $order->totals[$i]['class'] then title should read 'Shipping Type' & Handling

Thanks again.would someone be willing to help me out with the code I will need to use here??

Thanks

13 Jan 2009, 5:56 AM
#13
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Editing Packing slips and invoices

if ($order->totals[$i]['class'] == 'ot_shipping') {
// say something here
} else {
// say original text
}
14 Mar 2009, 10:53 PM
#14
dvdd127 avatar

dvdd127

New Zenner

Join Date:
Sep 2007
Posts:
74
Plugin Contributions:
0

Re: Editing Packing slips and invoices

I am looking for a way to change the font size of the store name/address that shows up on the top of the packing slip and invoice to make it the same size as the customers billing and shipping address... is this possible? if so, how do i go about doing it?

Thank you in advance.

17 Mar 2009, 6:10 AM
#15
dvdd127 avatar

dvdd127

New Zenner

Join Date:
Sep 2007
Posts:
74
Plugin Contributions:
0

Re: Editing Packing slips and invoices

anyone?

17 Mar 2009, 3:44 PM
#16
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Editing Packing slips and invoices

You would have to customize the files:
/admin/invoice.php
/admin/packingslip.php

and customize the class and id so that you can control that in the Admin stylesheet or hard code it in the two files to manage it ...

17 Mar 2009, 7:01 PM
#17
dvdd127 avatar

dvdd127

New Zenner

Join Date:
Sep 2007
Posts:
74
Plugin Contributions:
0

Re: Editing Packing slips and invoices

Are you saying I need to edit the CSS.. if that is the case would you please tell me which CSS file I need to edit because I can not seem to find what I need.

Thank you.

17 Mar 2009, 7:19 PM
#18
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Editing Packing slips and invoices

You can edit the file and add to the classes an id so that they can be customized in the Admin stylesheet ...

The Admin stylesheets are in:
/admin/includes

19 Apr 2009, 11:53 PM
#19
mooomers avatar

mooomers

New Zenner

Join Date:
Mar 2009
Posts:
33
Plugin Contributions:
0

Re: Editing Packing slips and invoices

right now setting #1 will print the first line regardless, iis there a way to display the box only if there is actually a comment by customer?

7 Jul 2009, 5:15 AM
#20
raquelann avatar

raquelann

New Zenner

Join Date:
Jun 2007
Posts:
80
Plugin Contributions:
0

Re: Editing Packing slips and invoices

I would also like to change the font style/size in the top of the invoice/packing slip; but, as a fairly newbie to this I can't understand what changes to make to the admin/invoice.php etc and then in teh stylesheets...?? styleshhets to we change and where... Please help. I am trying to have my pages look as proffessioanl as possible whilst learning along the way.