Results 1 to 10 of 21

Hybrid View

  1. #1
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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:
    Code:
    <?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 ...

    You might add border="1" to some of the tables to help you arrange where to add the text that you want ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  2. #2
    Join Date
    Sep 2007
    Posts
    72
    Plugin Contributions
    0

    Default Re: Editing Packing slips and invoices

    Quote Originally Posted by Ajeh View Post
    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:
    Code:
    <?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 ...

    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?

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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 ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Sep 2007
    Posts
    72
    Plugin Contributions
    0

    Default Re: Editing Packing slips and invoices

    Quote Originally Posted by Ajeh View Post
    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 ...
    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.

  5. #5
    Join Date
    Sep 2007
    Posts
    72
    Plugin Contributions
    0

    Default Re: Editing Packing slips and invoices

    Quote Originally Posted by dvdd127 View Post
    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

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Editing Packing slips and invoices

    Code:
    if ($order->totals[$i]['class'] == 'ot_shipping') {
    // say something here
    } else {
    // say original text
    }
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Sep 2007
    Posts
    72
    Plugin Contributions
    0

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

 

 

Similar Threads

  1. Replies: 3
    Last Post: 17 Jun 2012, 07:21 PM
  2. Customizing Invoices and Packing Slips
    By Crzipilot in forum Managing Customers and Orders
    Replies: 2
    Last Post: 29 Nov 2010, 07:31 AM
  3. Ordering of items on invoices and packing slips
    By d0ugparker in forum Managing Customers and Orders
    Replies: 1
    Last Post: 17 Aug 2009, 01:05 AM
  4. changing the invoices and packing slips
    By wills in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 10 Nov 2008, 09:11 AM
  5. Order Invoices and Packing Slips Question
    By nrg77 in forum Managing Customers and Orders
    Replies: 8
    Last Post: 12 Jul 2007, 07:01 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