New Zenner
- Join Date:
- Jul 2011
- Posts:
- 24
- Plugin Contributions:
- 0
Print Popup Invoice for v1.5?
Can someone tell me if Print Popup Invoice will work on Zencart v1.5?
http://www.zen-cart.com/downloads.php?do=file&id=1089
Regards,
Views: 4,657
New Zenner
Can someone tell me if Print Popup Invoice will work on Zencart v1.5?
http://www.zen-cart.com/downloads.php?do=file&id=1089
Regards,
New Zenner
No answer about this ?? No one knows about this?
Regards,
Totally Zenned
Have you scrolled down to the bottom of this page and checked any of the Similar Threads?
Of course, you could help out the forum by trying it out and reporting whether or not it worked.
Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com
New Zenner
I have just installed on 1.50 and seems to be working fine :-)
New Zenner
futurist71:
Can someone tell me if Print Popup Invoice will work on Zencart v1.5?
http://www.zen-cart.com/downloads.php?do=file&id=1089
Regards,
dbltoe:Of course, you could help out the forum by trying it out and reporting whether or not it worked.
I have just installed on ZenCart v1.5.0 and seems to be working fine :-)
Zen Follower
I installed it on 1.5.0 it works fine however i have the corner site seal (http://www.zen-cart.com/downloads.php?do=file&id=1102) installed, when printing an invoice it will print the seal too, any way to avoid that?
Totally Zenned
ShopVille:
I installed it on 1.5.0 it works fine however i have the corner site seal (http://www.zen-cart.com/downloads.php?do=file&id=1102) installed, when printing an invoice it will print the seal too, any way to avoid that?
Some of the html_header.php is loaded with the popup window... for me, I put the site seal script into a text file and strip off the script tags, saved it in my template javascript folder as site_seal.js Make sure you remove the <script> tags!
then on the html_header file I replaced the code with this..
<script src="<?php echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/site_seal.js' ?>" type="text/javascript"></script>
Doesn't get loaded with popups that way..
also... invoice popup works on 1.5.1 too...
Dave
Always forward thinking... Lost my mind!
Zen Follower
<script src="<?php echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/site_seal.js' ?>" type="text/javascript"></script>davewest:
Some of the html_header.php is loaded with the popup window... for me, I put the site seal script into a text file and strip off the script tags, saved it in my template javascript folder as site_seal.js Make sure you remove the <script> tags!
then on the html_header file I replaced the code with this..
>
> Doesn't get loaded with popups that way..
>
> also... invoice popup works on 1.5.1 too...
Thanks this works magic :)!!
is there a way to avoid the "Close Window" being printed on invoice?
Also can we add a print button next to the view button on the order history page? see attached
Totally Zenned
ShopVille:
is there a way to avoid the "Close Window" being printed on invoice?
one way is to use a background image instead of a forground image or text. Backgrounds don't normaly get printed unless the user turns it on in their web broswer. to use.. place a style tag above the body tag on tpl_main_page.php in the popup_print_invoice folder
<style> .closeBox { background:#fff url(../images/cross.gif) no-repeat; display: block; width: 25px; outline: none; }</style>
replace the text area with a donothing image for a spacer... backgrounds don't affect forground so you have to make room for them.
<td class="main" ><a href="javascript:window.close()"><div class="closeBox"><?php echo zen_draw_separator('pixel_trans.gif', '20', '20'); ?></div></a></td>
I used a red X to the left of the row for folks to key in on, the entire row well act as a button...
Also can we add a print button next to the view button on the order history page? see attached
The print invoice popup makes use of what was already created when the invoice was displayed... to do a button outside of a created invoice dispay means you would have to add more code so the popup can create an invoice.
Dave
Always forward thinking... Lost my mind!
New Zenner
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?
Totally Zenned
suportafaceri:
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? :P
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
New Zenner
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?
New Zenner
This is the source code of the blank page preview. I took the personal info out. Any thoughts?
<!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®, 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&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 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 RON</b></td>
<td class="dataTableContent" align="right" valign="top"><b>1.00 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 RON</td>
</tr>
<tr>
<td align="right" class="ot-total-Text">Total:</td>
<td align="right" class="ot-total-Amount">1.00 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>
New Zenner
This one line in /includes/templates/responsive_classic/common/html_header.php is the problem:
<script type="text/javascript">document.documentElement.className = 'no-fouc';</script>
If I delete it, the problem is solved.
So what should I do?
Totally Zenned
<script type="text/javascript">document.documentElement.className = 'no-fouc';</script>suportafaceri:
This one line in /includes/templates/responsive_classic/common/html_header.php is the problem:
> 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":
<?php if ($current_page != 'popup_print_invoice') { ?>
<script type="text/javascript">document.documentElement.className = 'no-fouc';</script>
<?php } ?>
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
Sensei
suportafaceri:
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?
<script type="text/javascript">document.documentElement.className = 'no-fouc';</script>suportafaceri:
This one line in /includes/templates/responsive_classic/common/html_header.php is the problem:
> 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.
New Zenner
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
Totally Zenned
suportafaceri:
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. :P 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...
Totally Zenned
DrByte:
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:
.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 :smile:
Zen Follower
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
Tell staff why this post should be reviewed.