Results 1 to 9 of 9
  1. #1
    Join Date
    Sep 2006
    Posts
    142
    Plugin Contributions
    0

    Default Add a Universal Message to Packing Slip

    I'm trying to find out how I can add a universal message to my packing slip, something that can be easily changed from month to month.

    For example, we have switched over to environmentally friendly packing peanuts. We would like to add to our packing slip a note telling the customer about these new packing peanuts and how to properly dispose of them. Then, once a month, I have a monthly "steal of a deal" that I would like to advertise on my packing slips, with a coupon code for the customers. The last note I would like to have on there is if we have any upcoming days off or shortened hours or any special shipping deadlines. So, for instance, it would have been nice to put on my packing slips, starting in September...the order deadline for shipments to be guaranteed in time for Christmas.


    So....ultimately, in the three examples above, I am needing to put a "note" on each packing slip that will print with the packing slip.

    This CAN NOT be done by enabling "comments to print" on the packing slip. As I would have to go in and ADD this information to the comments for each, and I don't want to do that...just have it automated to print on the packing slip.

    I searched to see if I could find how others have done this, but couldn't find a thread. If you know of one, please guide me to that thread.

  2. #2
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Add a Universal Message to Packing Slip

    Well that depends on how comfortable you are with html/php.

    Have a look at this file:

    admin/packingslip.php

    It is very straightforward html with bits of php so you should be able to add whatever you want. If you need help with how to do that then just post again.

    If you want to have the facility to add a message from admin without editing files that is possible but is going to take some custom coding.

  3. #3
    Join Date
    Mar 2009
    Posts
    45
    Plugin Contributions
    0

    Default Re: Add a Universal Message to Packing Slip

    Yeah. Make an image and img src it in packingslip.php. Then whenever you want something new make a new image and dump it in the server to replace the old one.

    Problem solved. :)

  4. #4
    Join Date
    Sep 2006
    Posts
    142
    Plugin Contributions
    0

    Default Re: Add a Universal Message to Packing Slip

    When I did that, and added the image prior to </body>

    SEE BELOW:

    PHP Code:
    <div align="center">
    <
    img src="../../images/packingpeanuts.jpg" alt="Packing Peanuts">
    </
    div>
    </
    body>


    </
    html
    It doesn't work or change anything on the packing slip itself. So I'm assuming I'm putting it in the wrong spot on that page?

    (I'm doing this to the admin/packingslip.php)

  5. #5
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Add a Universal Message to Packing Slip

    The position in the page is fine.

    The source looks wrong. I am guessing that it should be "../images/packingpeanuts.jpg"

  6. #6
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Add a Universal Message to Packing Slip

    Personally, I don't really think there is much benefit in the image technique at all. But you can choose.

    But before anything else just put a bit of text where you have the image. That way you will be able to see it appear (hopefully) in the packing slip.

    Then decide if you want to go with the image technique.

    As I say, by the time you have created an image and uploaded it you've probably taken a lot more time than just editing the file and uploading it. Unless of course you want an image rather than text. Basically, you cn put whatever you want in that file

  7. #7
    Join Date
    Jun 2008
    Location
    Bird-in-Hand, Pennsylvania
    Posts
    62
    Plugin Contributions
    0

    Default Re: Add a Universal Message to Packing Slip

    Here is code I added to admin/packingslip.php, now it shows the shipping method, maybe this will help.
    ?>
    </table></td>
    </tr>
    <?php } // order comments ?>

    </table>
    <!-- body_text_eof //-->
    <br>
    </body>
    </html>
    <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
    <td class="main"><?php echo $order->info['shipping_method']; ?></td>

    To clarify, this is the bottom lines of code from that page. I copied/pasted some of the code above the added lines so hopefully you can identify the spot in your php file.

  8. #8
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Add a Universal Message to Packing Slip

    I think what you meant to say was:

    Code:
    ?>
    </table></td>
    </tr>
    <?php } // order comments ?>
    
    </table>
    <!-- body_text_eof //-->
    <br>
    <div class="main"><?php echo $order->info['shipping_method']; ?></div>
    </body>
    </html>
    <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
    That way the html will be valid. The code needs to go inside the <body> and <html> tags. The <td> tag that you are using needs to be nested in a table and a table row so I have changed it to a <div> . You might need to change the class of this <div> to something other than "main".

  9. #9
    Join Date
    Jun 2008
    Location
    Bird-in-Hand, Pennsylvania
    Posts
    62
    Plugin Contributions
    0

    Default Re: Add a Universal Message to Packing Slip

    Thanks, niccol

 

 

Similar Threads

  1. Add shipping method to packing slip ?
    By NullMind in forum Managing Customers and Orders
    Replies: 9
    Last Post: 2 Jun 2011, 03:38 AM
  2. How to add 'thank you' to packing slip?
    By Nintendoparts in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 28 Apr 2011, 02:02 PM
  3. Add Shipping Method to Packing Slip
    By sarahwhg in forum Managing Customers and Orders
    Replies: 6
    Last Post: 3 Oct 2010, 12:36 AM
  4. How to add image in packing slip?
    By teflonchest in forum Managing Customers and Orders
    Replies: 1
    Last Post: 3 May 2010, 04:09 PM
  5. Trying to add coupon code to packing slip
    By lukemcr in forum Managing Customers and Orders
    Replies: 5
    Last Post: 10 Apr 2007, 06:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg