Results 1 to 10 of 20

Hybrid View

  1. #1
    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?

  2. #2
    Join Date
    Jul 2012
    Posts
    16,816
    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...

  3. #3
    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

  4. #4
    Join Date
    Jul 2012
    Posts
    16,816
    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...

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    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.

  6. #6
    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

  7. #7
    Join Date
    Sep 2014
    Location
    Indiana
    Posts
    121
    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

 

 

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

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