Forums / Templates, Stylesheets, Page Layout / How to add 'thank you' to packing slip?

How to add 'thank you' to packing slip?

Views: 2,142

Results 1 to 7 of 7
2 Oct 2010, 11:44 PM
#1
nintendoparts avatar

nintendoparts

New Zenner

Join Date:
Jul 2010
Posts:
49
Plugin Contributions:
0

How to add 'thank you' to packing slip?

I'd like to add a 'Thank you for shopping with .....' at the bottom of the packing slip.

Can anybody tell me how to do this. I think it would be something in the admin/packingslip.php but I'm not sure.

I'm sure this is quite easy, but I'm a bit of a noob.

3 Oct 2010, 1:32 AM
#2
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: How to add 'thank you' to packing slip?

Nintendoparts:

...I think it would be something in the admin/packingslip.php but I'm not sure....

At around lines 171-175 of this file you find:

<tr> <td class="smallText" align="center"><strong><?php echo TABLE_HEADING_DATE_ADDED; ?></strong></td> <td class="smallText" align="center"><strong><?php echo TABLE_HEADING_STATUS; ?></strong></td> <td class="smallText" align="center"><strong><?php echo TABLE_HEADING_COMMENTS; ?></strong></td> </tr>

Insert a fourth <td ...>[your code]</td> just before the </tr>

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

3 Oct 2010, 3:59 AM
#3
nintendoparts avatar

nintendoparts

New Zenner

Join Date:
Jul 2010
Posts:
49
Plugin Contributions:
0

Re: How to add 'thank you' to packing slip?

Thanks for the speedy reply. I want to stick to the using the zencart system properly so I've added the line:

define('PACKINGSLIP_THANKYOU', 'Thank you for shopping with NintendoParts.com.au');

to my INCLUDES/LANGUAGES/CUSTOM/english.php

I'm just not sure what code to use to in this line:

<td class="smallText" align="center"><strong>**what code do I put here?**</strong></td>

Also should I want to make sure I'm using the overide system correctly, should I be uploading the new packingslip.php to:

ADMIN/CUSTOM/packingslip.php

3 Oct 2010, 4:37 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: How to add 'thank you' to packing slip?

"what code do I put here?" = <?php echo PACKINGSLIP_THANKYOU; ?>

And, no, there are no overrides for the admin. Just edit the original files directly.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

5 Oct 2010, 9:33 AM
#5
nintendoparts avatar

nintendoparts

New Zenner

Join Date:
Jul 2010
Posts:
49
Plugin Contributions:
0

Re: How to add 'thank you' to packing slip?

Thanks for the replies. Figured out how to do it:

  1. place

define('PACKINGSLIP_THANKYOU', 'Thank you for shopping with mywebsite.com');

into admin/includes/languages/modules/shipping/packingslip.php

anywhere will do, I put mine at the bottom

1)place

**<tr>

<td class="smallText" align="center"><strong><?php echo PACKINGSLIP_THANKYOU; ?></strong></td> </tr>**

into admin/packingslip.php

just above

<!-- body_text_eof //-->

but after

</table>

This will give you:

Thank your for shopping with mywebsite.com

just after all the info.

5 Oct 2010, 4:06 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: How to add 'thank you' to packing slip?

<tr> <td> </tr>

should ALWAYS come before </table>

Otherwise your HTML is technically invalid.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

28 Apr 2011, 1:02 PM
#7
wifeandmomof4 avatar

wifeandmomof4

New Zenner

Join Date:
Nov 2010
Location:
Ohio
Posts:
13
Plugin Contributions:
0

Re: How to add 'thank you' to packing slip?

This question is kind of along the same lines.

I use model numbers for my products and would like the invoice and packing slip to sort my products 1st by the model number and then by the product name.

How would I go about doing that? Do I modify the stylesheet or the file?

Thanks!