Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20
  1. #11
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Print Popup Invoice for v1.5?

    Quote Originally Posted by suportafaceri View Post
    Hello,

    I have ZenCart 1.5.5a, Ceon-URI-Mapping-4.5.2 and One-Page Checkout installed. When I click Print Invoice I get a blank page printed. Any Ideea how to fix this as I get no error logs?
    Tried a different browser? Is the print preview also blank? Let's also not forget, does a print of anything else provide ink to the page?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #12
    Join Date
    Jun 2012
    Posts
    32
    Plugin Contributions
    1

    Default Re: Print Popup Invoice for v1.5?

    Hello, I tried Chrome and Modzila. It provides ”ink to the page” (if I click page source on the preview, the output exists only as source - meaning the order details and so on) but the page (the preview page and the printed page) it white as snow. Any thoughts?

  3. #13
    Join Date
    Jun 2012
    Posts
    32
    Plugin Contributions
    1

    Default Re: Print Popup Invoice for v1.5?

    This is the source code of the blank page preview. I took the personal info out. Any thoughts?
    Code:
    <!DOCTYPE html>
    <html dir="ltr" lang="en">
      <head>
      <meta charset="utf-8">
      <title>Zen Cart!, The Art of E-commerce</title>
      <meta name="keywords" content="xxx" />
      <meta name="description" content="Zen Cart! :  xx" />
      <meta name="author" content="xxx" />
      <meta name="generator" content="shopping cart program by Zen Cart&reg;, http://www.zen-cart.com eCommerce" />
    
      <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes"/>
    
    
      <base href="http://www.xxx/" />
      <link rel="canonical" href="http://www.xxx/index.php?main_page=popup_print_invoice&amp;order_id=8" />
    
    <link rel="stylesheet" type="text/css" href="includes/templates/responsive_classic/css/stylesheet.css" />
    <link rel="stylesheet" type="text/css" href="includes/templates/responsive_classic/css/stylesheet_colors.css" />
    <link rel="stylesheet" type="text/css" href="includes/templates/responsive_classic/css/stylesheet_css_buttons.css" />
    <link rel="stylesheet" type="text/css" media="print" href="includes/templates/responsive_classic/css/print_stylesheet.css" />
    
    <script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="//code.jquery.com/jquery-1.12.0.min.js"%3E%3C/script%3E'));</script>
    <script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="includes/templates/responsive_classic/jscript/jquery.min.js"%3E%3C/script%3E'));</script>
    
    <script type="text/javascript" src="includes/templates/responsive_classic/jscript/jscript_matchHeight-min.js"></script>
    <script language="javascript" type="text/javascript"><!--
    var i=0;
    function resize() {
      if (navigator.appName == 'Netscape') i=10;
      if (document.documentElement && document.documentElement.clientWidth) {
        frameWidth = document.documentElement.clientWidth;
        frameHeight = document.documentElement.clientHeight;
        window.resizeTo(frameWidth,frameHeight-i);
      }
      else if (document.body) {
         window.resizeTo(document.body.clientWidth, document.body.clientHeight-i);
      }
      self.focus();
    }
    //--></script>
    
      <script type="text/javascript">document.documentElement.className = 'no-fouc';</script>
      <link rel="stylesheet" type="text/css" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" />
    </head>
    
    
    <body onload="resize(); print();">
    <table width="96%" border="0" cellpadding="2" cellspacing ="2" align="center">
      <tr>
        <td>
          <!-- body_text //-->
    <table border="0" width="100%" cellspacing="0" cellpadding="2">
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td valign="top"><table border="0" cellspacing="2" cellpadding="0">
              <tr>
                <td class="invoiceHeading">Store Name<br />
    Address<br />
    Country<br />
    Phone</td>
              </tr>
              <tr>
                <td><img src="includes/templates/template_default/images/pixel_trans.gif" alt="" width="1" height="10" /></td>
              </tr>
              <tr>
                <td class="invoiceHeading" align="left" valign="top">Phone: STORE_PHONE</td>
              </tr>
              <tr>
                <td class="invoiceHeading" align="left" valign="top">Fax: STORE_FAX</td>
              </tr>
            </table></td>
            <td align="right" valign="top"><table border="0" cellspacing="2" cellpadding="0">
              <tr>
                <td align="right"><img src="includes/templates/responsive_classic/images/logo.gif" alt="Powered by Zen Cart :: The Art of E-Commerce" title=" Powered by Zen Cart :: The Art of E-Commerce " width="254" height="68" /></td>
              </tr>
              <tr>
                <td class="pageHeading" align="right">Order #8</td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="2">
          <tr>
            <td colspan="6"><img src="includes/templates/template_default/images/pixel_black.gif" alt="" width="100%" height="1" /></td>
          </tr>
          <tr>
            <td><img src="includes/templates/template_default/images/pixel_trans.gif" alt="" width="23" height="1" /></td>
            <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2">
              <tr>
                <td><img src="includes/templates/template_default/images/pixel_trans.gif" alt="" width="1" height="5" /></td>
              </tr>        
              <tr>
                <td class="main"><b>BILL TO</b></td>
              </tr>
              <tr>
                <td><img src="includes/templates/template_default/images/pixel_trans.gif" alt="" width="1" height="5" /></td>
              </tr>
              <tr>
                <td class="main">xxx<br>xxx <br>xxx<br>xxx<br>xxx, xxx<br>xxx</td>
              </tr>
              <tr>
                <td><img src="includes/templates/template_default/images/pixel_trans.gif" alt="" width="1" height="5" /></td>
              </tr>
              <tr>
                <td class="main">xxx</td>
              </tr>
              <tr>
                <td class="main"><a href="mailto:xxx">xxx</a></td>
              </tr>
            </table></td>
            <td><img src="includes/templates/template_default/images/pixel_trans.gif" alt="" width="60" height="1" /></td>
            <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2">
              <tr>
                <td><img src="includes/templates/template_default/images/pixel_trans.gif" alt="" width="1" height="5" /></td>
              </tr>
              <tr>
                <td class="main"><b>SHIP TO</b></td>
              </tr>
              <tr>
                <td><img src="includes/templates/template_default/images/pixel_trans.gif" alt="" width="1" height="5" /></td>
              </tr>
              <tr>
                <td class="main"></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><img src="includes/templates/template_default/images/pixel_trans.gif" alt="" width="1" height="10" /></td>
      </tr>
      <tr>
        <td><table border="0" cellspacing="0" cellpadding="2">
          <tr>
            <td class="main"><b>Order #8</b></td>
          </tr>
          <tr>
            <td class="main"><b>Date Ordered:</b></td>
            <td class="main">Monday 05 September, 2016</td>
          </tr>
          <tr>
            <td class="main"><b>Payment Method:</b></td>
            <td class="main">Check/Money Order</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><img src="includes/templates/template_default/images/pixel_trans.gif" alt="" width="1" height="10" /></td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
          <tr class="dataTableHeadingRow">
            <td class="dataTableHeadingContent" colspan="2">Item Name</td>
            <td class="dataTableHeadingContent">Model</td>
            <td class="dataTableHeadingContent" align="right">Tax</td>
            <td class="dataTableHeadingContent" align="right">Unit Price</td>
            <td class="dataTableHeadingContent" align="right">Total</td>
          </tr>
          <tr class="dataTableRow">
            <td class="dataTableContent" valign="top" align="right">1&nbsp;x</td>
            <td class="dataTableContent" valign="top">xxx</td>
            <td class="dataTableContent" valign="top">xxx</td>
            <td class="dataTableContent" align="right" valign="top">None!</td>
            <td class="dataTableContent" align="right" valign="top"><b>1.00&nbsp;RON</b></td>
            <td class="dataTableContent" align="right" valign="top"><b>1.00&nbsp;RON</b></td>
          </tr>
          <tr>
            <td align="right" colspan="8"><table border="0" cellspacing="0" cellpadding="2">
              <tr>
                <td align="right" class="ot-subtotal-Text">Sub-Total:</td>
                <td align="right" class="ot-subtotal-Amount">1.00&nbsp;RON</td>
              </tr>
              <tr>
                <td align="right" class="ot-total-Text">Total:</td>
                <td align="right" class="ot-total-Amount">1.00&nbsp;RON</td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      
    </table>
    <!-- body_text_eof //-->    </td>
      </tr>
      <tr>
        <td class="main" align="right"><a href="javascript:window.close()">[ Close Window ]</a></td>
      </tr>
    </table>
    </body></html>

  4. #14
    Join Date
    Jun 2012
    Posts
    32
    Plugin Contributions
    1

    Default Re: Print Popup Invoice for v1.5?

    This one line in /includes/templates/responsive_classic/common/html_header.php is the problem:
    Code:
      <script type="text/javascript">document.documentElement.className = 'no-fouc';</script>
    If I delete it, the problem is solved.
    So what should I do?

  5. #15
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Print Popup Invoice for v1.5?

    Quote Originally Posted by suportafaceri View Post
    This one line in /includes/templates/responsive_classic/common/html_header.php is the problem:
    Code:
      <script type="text/javascript">document.documentElement.className = 'no-fouc';</script>
    If I delete it, the problem is solved.
    So what should I do?
    Couple of things. First you said that when you selected Print Invoice...

    Where is the button/option: Print Invoice?

    Secondly, when I have used a default ZC install, selected the invoice from a customer's record, the invoice is presented in a separate window, the source code of that window does not include all of the other "code" that is/was shown above. In otherwords, the one line shown above does not appear... I'm wondering what the differences are between the two systems. That said, it looks like there is information loaded into the header of the file that is not in a base install and possibly could be omitted either just for invoices and packing slips, or unsure, but possibly entirely.

    Now on further review, it appears that all of this is happening on the store front side which makes more sense than incorrectly installing a catalog template in the admin. So, seeing that the "page" popup_print_invoice is not a default page name, I would 1) suggest going back to either the template author or coder for that addition to your site, but effectively you should be able to surround that text in the includes/templates/YOUR_TEMPLATE/common/html_header.php (specifically includes/templates/responsive_classic/common/html_header.php) with an if statement such as the following to prevent it from being "displayed":

    Code:
    <?php if ($current_page != 'popup_print_invoice') { ?>
    <script type="text/javascript">document.documentElement.className = 'no-fouc';</script>
    <?php } ?>
    Last edited by mc12345678; 6 Sep 2016 at 05:28 PM.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #16
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Print Popup Invoice for v1.5?

    Quote Originally Posted by suportafaceri View Post
    Hello,

    I have ZenCart 1.5.5a, Ceon-URI-Mapping-4.5.2 and One-Page Checkout installed. When I click Print Invoice I get a blank page printed. Any Ideea how to fix this as I get no error logs?
    Quote Originally Posted by suportafaceri View Post
    This one line in /includes/templates/responsive_classic/common/html_header.php is the problem:
    Code:
      <script type="text/javascript">document.documentElement.className = 'no-fouc';</script>
    If I delete it, the problem is solved.
    So what should I do?
    That "no-fouc" is for "no-flash-of-unstyled-content", and there is corresponding javascript in the DIY and responsive-classic template to accommodate that.
    Thus it seems your plugin hasn't been updated to work with v155.
    To fix it, you'll want to review the contents of the added template file(s) and add any missing components to it/them.
    .

    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.

  7. #17
    Join Date
    Jun 2012
    Posts
    32
    Plugin Contributions
    1

    Default Re: Print Popup Invoice for v1.5?

    Thank you so much, that did the trick.
    The Print Invoice Popup is an Plugin downloaded from here:
    https://www.zen-cart.com/downloads.php?do=file&id=1089

  8. #18
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Print Popup Invoice for v1.5?

    Quote Originally Posted by suportafaceri View Post
    Thank you so much, that did the trick.
    The Print Invoice Popup is an Plugin downloaded from here:
    https://www.zen-cart.com/downloads.php?do=file&id=1089
    Yeah, after that little bit of research, looking at the topic of this thread and it's history... I realized my oversight. was just trying to help someone that had a problem.

    Not sure what changes would otherwise be necessary, but DrByte pointed out that the plugin probably needs a little massaging to incorporate the expectations of the current "arrangement" and it's workings with ZC 1.5.5... which would be better for it than the suggested code hacking provided.

    But glad it helped at least a little.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  9. #19
    Join Date
    Mar 2005
    Location
    United Kingdom
    Posts
    608
    Plugin Contributions
    0

    Default Re: Print Popup Invoice for v1.5?

    Quote Originally Posted by DrByte View Post
    That "no-fouc" is for "no-flash-of-unstyled-content", and there is corresponding javascript in the DIY and responsive-classic template to accommodate that.
    Thus it seems your plugin hasn't been updated to work with v155.
    To fix it, you'll want to review the contents of the added template file(s) and add any missing components to it/them.
    Old post but I couldn't find the answer on the forums so posting here to help others.

    Running 1.5.5f and had the same issue with a blank page when using the responsive template. If I swapped to classic it was fine. I have no idea if what I have done is correct but I looked for other pages that mention "no-fouc" in the code and they all seemed to have a css file with the following code:
    Code:
    .no-fouc{display:block !important;}
    I created the following file with the above line in it and that solved my blank page.
    \includes\templates\YOUR_TEMPLATE\css\popup_print_invoice.css

    If I've only done half the job hopefully someone will let me know

  10. #20
    Join Date
    Sep 2014
    Location
    Indiana
    Posts
    91
    Plugin Contributions
    0

    Default Re: Print Popup Invoice for v1.5?

    Similarly, having recently updated to 1.5.5f and the themeforest Alto responsive template, this plug-in will not work for our site. Instead of opening the invoice, it opens a popup window and goes to /store/account_history.html. When pointing to the "print invoice" link at the my orders page, the link looks correct, but it immediately bumps forward to the account history.

    Any thoughts as to why this is happening? I've checked and re-checked the files and uploads, but it was previously working, so i suspect its a conflict with the new template. Thanks,

    Matt

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. popup print invoice - no content
    By patternman in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 2 Dec 2011, 07:47 PM
  2. Client Invoice - problems customizing the popup-print-invoice addon
    By LloydR in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 12 Jan 2011, 10:41 AM
  3. Print Invoice Popup
    By shanesoine in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 24 Nov 2010, 11:52 AM
  4. Popup Print Invoice help
    By eps492003 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 26 May 2010, 09:50 PM
  5. Popup Print Invoice Version 1.1
    By Decostyle in forum All Other Contributions/Addons
    Replies: 11
    Last Post: 15 Feb 2009, 08:28 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR