Results 1 to 10 of 84

Hybrid View

  1. #1
    Join Date
    Jun 2016
    Location
    Suffolk VA
    Posts
    618
    Plugin Contributions
    0

    Default All Packing Slips not displaying shipping info

    The all_packing_slips portion of this plugin appears to be the original 2014 version. It was working fine with 1.5.5, but after our upgrade to 1.5.7d, it is no longer printing the shipping info on the packing slip. We have the shipping options highly customized so our customers will choose the optimum option for shipping. The packers can go by that information on the packing slip better than 99% of the time, so they don't have to decide what carton and shipping service to use for each order. Now that information is no longer appearing on the packing slip. I've looked at all_packing_slips.php, but I'm not yet sufficiently competent with php to see why the shipping info is apparently not being picked up any more. Can anyone help? @lat9, are you supporting this plugin now?

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: All Packing Slips not displaying shipping info

    @HeleneWallis, I'm not currently supporting this; the last person who made changes was @mprough. You might try contacting her to see what's up.

  3. #3
    Join Date
    Jun 2016
    Location
    Suffolk VA
    Posts
    618
    Plugin Contributions
    0

    Default Re: All Packing Slips not displaying shipping info

    Quote Originally Posted by lat9 View Post
    @HeleneWallis, I'm not currently supporting this; the last person who made changes was @mprough. You might try contacting her to see what's up.
    Thanks, I'll do that and mention that the shipping method line may be really helpful to a lot of companies. I've put it back for us, but some newer users may not be aware that it was ever available.

  4. #4
    Join Date
    Oct 2007
    Posts
    73
    Plugin Contributions
    0

    Default Re: All Packing Slips not displaying shipping info

    I have 2.6 installed on 1.5.7c and after generating a report and choosing to print it the print job always adds a blank page at the end. Does this under edge and chrome. When you are viewing the webpage there is no extra blank page. Does not matter which printer or save to pdf is selected. Preview shows it and it will print the blank. I looked into the code and noticed in the admin\includes\templates\tpl_all_invoices.php in the foreach loop it adds the page break at the end of each loop. I am guessing ideally it would either do a page break at the beginning of each loop (but have a condition to skip for the first loop) or check if it was the last record and if not then add the page break otherwise skip it. Just playing around I commented the page break at the end of the loop and instead inserted it into the beginning. This fixed the problem and even though there is an immediate page break it doesn't seem to add it to the print job. So the beginning of my loop looks like (line 63):
    Code:
    foreach($pending_orders as $oID) {
    $order = new order( (int)$oID);
    ?>
    <div style="page-break-before: always;"></div>

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: All Packing Slips not displaying shipping info

    Quote Originally Posted by spyderrobotics View Post
    I have 2.6 installed on 1.5.7c and after generating a report and choosing to print it the print job always adds a blank page at the end. Does this under edge and chrome. When you are viewing the webpage there is no extra blank page. Does not matter which printer or save to pdf is selected. Preview shows it and it will print the blank. I looked into the code and noticed in the admin\includes\templates\tpl_all_invoices.php in the foreach loop it adds the page break at the end of each loop. I am guessing ideally it would either do a page break at the beginning of each loop (but have a condition to skip for the first loop) or check if it was the last record and if not then add the page break otherwise skip it. Just playing around I commented the page break at the end of the loop and instead inserted it into the beginning. This fixed the problem and even though there is an immediate page break it doesn't seem to add it to the print job. So the beginning of my loop looks like (line 63):
    Code:
    foreach($pending_orders as $oID) {
    $order = new order( (int)$oID);
    ?>
    <div style="page-break-before: always;"></div>
    I'll give that a look, no guarantee on timeframe at this point. GitHub tracking issue: https://github.com/lat9/all_invoices/issues/12

  6. #6
    Join Date
    Jun 2016
    Location
    Suffolk VA
    Posts
    618
    Plugin Contributions
    0

    Default Re: All Packing Slips not displaying shipping info

    Never mind, I found it. I was looking in the wrong place. \YOUR_ADMIN\includes\templates\tpl_all_packing_slips.php is missing two lines of code that were in the original version.

    After line 134, you need to add

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

    So the full code at that point is

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

 

 

Similar Threads

  1. v152 Support Thread: Report All Errors (Even Warnings)
    By lat9 in forum Addon Admin Tools
    Replies: 34
    Last Post: 1 Feb 2020, 05:42 PM
  2. v154 Editable Invoices & Packing Slips [Support]
    By dbltoe in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 7 Oct 2015, 11:44 PM
  3. Replies: 1
    Last Post: 27 Jan 2012, 06:35 PM
  4. Admin Activity Report [support thread]
    By Steven300 in forum All Other Contributions/Addons
    Replies: 17
    Last Post: 6 Aug 2009, 12:47 PM
  5. printing all invoices
    By simplesat in forum General Questions
    Replies: 1
    Last Post: 28 Nov 2008, 04:03 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