This one line in /includes/templates/responsive_classic/common/html_header.php is the problem:
If I delete it, the problem is solved.Code:<script type="text/javascript">document.documentElement.className = 'no-fouc';</script>
So what should I do?
This one line in /includes/templates/responsive_classic/common/html_header.php is the problem:
If I delete it, the problem is solved.Code:<script type="text/javascript">document.documentElement.className = 'no-fouc';</script>
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...
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...
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.
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:
I created the following file with the above line in it and that solved my blank page.Code:.no-fouc{display:block !important;}
\includes\templates\YOUR_TEMPLATE\css\popup_print_invoice.css
If I've only done half the job hopefully someone will let me know![]()
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