Results 1 to 9 of 9
  1. #1
    Join Date
    Jun 2006
    Posts
    168
    Plugin Contributions
    0

    Default show shipping method (e.g. UPS 3 day select) in the invoice or packing slip?

    Hey is it possible to display the shipping method in detail in the invoice and/or in the packing slip and order details?

    Right now it only shows UPS, but it does not say if it's UPS GROUND or Overnight or something. The only way I see it is the the email confirmation. BUt when I log into zencart backend I don't see it.

    Please advice.

    Thanks

    Francis

  2. #2
    Join Date
    Jun 2006
    Posts
    168
    Plugin Contributions
    0

    Default Re: show shipping method (e.g. UPS 3 day select) in the invoice or packing slip

    bump anyone???

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

    Default Re: show shipping method (e.g. UPS 3 day select) in the invoice or packing slip?

    The UPS shipping shows the details on both the Order and the Invoice ...

    The Packing Slip is the only one without details as, by default, it does not show the Order Totals ...

    What version of Zen Cart are you running?

    Is this a clean install or an upgrade?

    What shipping modules do you have installed?

    What add ons do you have installed?
    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
    Jun 2006
    Posts
    168
    Plugin Contributions
    0

    Default Re: show shipping method (e.g. UPS 3 day select) in the invoice or packing slip?

    hmm....looks like i upgraded to superorders and superinvoice. that being said, now it only shows UPS, but not the type of UPS. anyone have an idea how to fix this?

    Thanks

    it's 1.3.8 version with superorders module

    Quote Originally Posted by Ajeh View Post
    The UPS shipping shows the details on both the Order and the Invoice ...

    The Packing Slip is the only one without details as, by default, it does not show the Order Totals ...

    What version of Zen Cart are you running?

    Is this a clean install or an upgrade?

    What shipping modules do you have installed?

    What add ons do you have installed?

  5. #5
    Join Date
    Jul 2009
    Posts
    3
    Plugin Contributions
    0

    Default Re: show shipping method (e.g. UPS 3 day select) in the invoice or packing slip?

    I'm having the same issue. Has anyone resolved this yet?

  6. #6
    Join Date
    Oct 2009
    Location
    Columbus, Ohio
    Posts
    38
    Plugin Contributions
    0

    Default Re: show shipping method (e.g. UPS 3 day select) in the invoice or packing slip?

    Did anyone ever figure out how to fix this? I would like the full shipping method to show on the invoice. I really would like to see it print out on the packing slip too if anyone has worked out that code.

    I think the parenthetical is being stripped out in admin/super_orders.php by this code but haven't figured out how to make it not do that:

    // format shipping method to remove ()
    $clean_shipping = explode(" (", $oInfo->shipping_method, 2);
    $clean_shipping = rtrim($clean_shipping[0], ":");
    $shipping_method = $clean_shipping;

    When I comment out those lines, it doesn't seem to fix the problem (unless it's a database issue at that point). Anyone have any ideas?

  7. #7
    Join Date
    Oct 2009
    Location
    Columbus, Ohio
    Posts
    38
    Plugin Contributions
    0

    Default Re: show shipping method (e.g. UPS 3 day select) in the invoice or packing slip?

    Figured it out. For the stock packing slip, in admin/packingslip.php find this

    <tr>
    <td class="main"><?php echo zen_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br>'); ?></td>
    </tr>

    and below that, add this

    <tr>
    <td class="main"><?php echo $order->info['shipping_method']; ?></td>
    </tr>


    For Super Orders, in admin/super_packingslip.php find this

    for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) {
    if ($order->totals[$i]['class'] == 'ot_shipping') {
    $format_shipping = explode(" (", $order->totals[$i]['title'], 2);
    $shipping_method = rtrim($format_shipping[0], ":");
    break;
    }
    }


    and comment it out. Then find this

    <td class="main"><?php echo $shipping_method; ?></td>

    and change it to this

    <td class="main"><?php echo $order->info['shipping_method']; ?></td>

    But don't change anything until you make backups of the files to be changed!!!

  8. #8
    Join Date
    May 2004
    Posts
    86
    Plugin Contributions
    0

    Default Re: show shipping method (e.g. UPS 3 day select) in the invoice or packing slip?

    Quote Originally Posted by BadDog1369 View Post
    Figured it out. For the stock packing slip, in admin/packingslip.php find this

    <tr>
    <td class="main"><?php echo zen_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br>'); ?></td>
    </tr>

    and below that, add this

    <tr>
    <td class="main"><?php echo $order->info['shipping_method']; ?></td>
    </tr>


    For Super Orders, in admin/super_packingslip.php find this

    for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) {
    if ($order->totals[$i]['class'] == 'ot_shipping') {
    $format_shipping = explode(" (", $order->totals[$i]['title'], 2);
    $shipping_method = rtrim($format_shipping[0], ":");
    break;
    }
    }


    and comment it out. Then find this

    <td class="main"><?php echo $shipping_method; ?></td>

    and change it to this

    <td class="main"><?php echo $order->info['shipping_method']; ?></td>

    But don't change anything until you make backups of the files to be changed!!!
    This is good, but unfortunately, we have a few attention-challenged clients who miss this in the confirmation email AND don't always read the packing list. They inadvertently have shipped out UPS GND when the customer wanted UPS 2ND, etc.

    So we took this a step further. The same caveats apply... make backups BEFORE you change files.

    First, for those using the std stock zen (english is shown)...
    step 1) open admin/includes/languages/english/packingslip.php, orders.php, & invoice.php and ADD (we chose somewhere near ENTRY_PAYMENT_METHOD)...

    define('ENTRY_SHIPPING_METHOD', 'Shipping Method:');

    save and close, then
    step 2) open and change /admin/packingslip.php as suggested OR consider making the following changes to /packingslip.php, orders.php, & invoice.php (this will allow it to show on the packing sheet, the invoice and in the order detail screen right after the payment method).

    look for...

    <tr>
    <td class="main"><strong><?php echo ENTRY_PAYMENT_METHOD; ?></strong></td>
    <td class="main"><?php echo $order->info['payment_method']; ?></td>
    </tr>

    and ADD immediately after...

    <tr>
    <td class="main"><strong><?php echo ENTRY_SHIPPING_METHOD; ?></strong></td>
    <td class="main"><?php echo $order->info['shipping_method']; ?></td>
    </tr>

    For those using SUPER ORDERS...

    follow step 1 and 2 above EXCEPT...
    in step 1, you'll edit the language files - admin/includes/languages/english/super_orders.php and super_invoice.php (its already in super_packingslip.php)
    and in step 2 you'll be editing admin/super_packingslip.php, super_orders.php and super_invoice.php

    and optionally (if you want to also show full shipping detail in the subtotal area), while super_orders.php and super_invoice.php are still open,

    step 3) look for...

    for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) {
    if ($order->totals[$i]['class'] == 'ot_shipping') {
    $format_shipping = explode(" (", $order->totals[$i]['title'], 2);
    $clean_shipping = rtrim($format_shipping[0], ":");
    $display_title = $clean_shipping . ':';
    }

    and change: $clean_shipping = rtrim($format_shipping[0], ":"); to: $clean_shipping = rtrim($order->info['shipping_method'],":");

    IF you choose to NOT comment out the lines as suggested for super_packingslip.php, you could...

    change: $shipping_method = rtrim($format_shipping[0], ":"); to: $shipping_method = rtrim($order->info['shipping_method'],":");


    You may do both step 2 AND step 3 for super_order.php and super_invoice.php (to have it show both places) OR you may do step 2 or step 3 (to have it show one place or the other).
    the Imagination Factory & DaVinci Wood Models
    www.what-if.com & www.davincistore.com
    Apache2.x (FreeBSD/Linux) PHP 5.x mySQL 5.x

  9. #9
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    836
    Plugin Contributions
    0

    Default Re: show shipping method (e.g. UPS 3 day select) in the invoice or packing slip?

    I just got an order that said next day air. However, shipping was not calculated using UPS.

    The client had a group discount and when it calculated group discount it eliminated the shipping.

    I tried purchasing the same items with and with out the group discount. When I didnt use the group discount, the order went through with shipping included.

    Is this a bug or have messed up.

 

 

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. Add Shipping Method to Packing Slip
    By sarahwhg in forum Managing Customers and Orders
    Replies: 6
    Last Post: 3 Oct 2010, 12:36 AM
  3. Show ONLY customer comments on Invoice and Packing Slip
    By manutd98 in forum Managing Customers and Orders
    Replies: 10
    Last Post: 27 Oct 2009, 07:04 AM
  4. Show shipping weight on invoice or packing slip?
    By raspberryjamcloth in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 21 Dec 2008, 10:24 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