This was originally released by Blindside. If you search this old archived thread for "print invoice" you'll find the version for 1.3.7.
Brent
This was originally released by Blindside. If you search this old archived thread for "print invoice" you'll find the version for 1.3.7.
Brent
This thread shows what gems are sometimes hidden away in the forum.
The 1.1 version posted by redmonds does appear to be the latest. I can't locate a version specifically for 1.3.7, but a quick check over the v1.1 code shows nothing obvious that would get inn the way of using that version with Zen Cart 1.3.7.1 or indeed any version from 1.3.0 onwards, though I haven't actually testing this.
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
Thanks Guys,
This is awesome and a big help :)
Now I just have to email this link to each customer. Any idea how I include this in the order confirmation email?
index.php?main_page=popup_print_invoice&order_id=1649
Also on the invoice it displays the column heading Tax and then “None!” is underneath it. I would like to remove both of these words, but have been fiddling around on includes/modules/print_invoice.php and can’t figure it. (I don't use the tax columns, if tax applies I insert it as a separate line).
Should be possible as I removed these tax column entries from my admin/invoice.php file. Any quick suggestions?
The other thing I wanted to do with these invoices is make sure the “Commonwealth Bank” image and Credit Card logo images did not appear (I only want them to appear at checkout, I just want the plain text on this invoice). Having HTML and image refs in these fields also causes difficulties when using the EDIT ORDERS module as the fields are then too long and get cut off. I was interested to see although in this includes/modules/print_invoice.php the words “Flat Rate Shipping” appear as just the text only without my large FedEx / UPS logos that are displayed on the checkout. Lines 167-171 may be onto something here, looks like is it clean formatting?
$format_shipping = explode(" (", $order->totals[$i]['title'], 2);
$clean_shipping = rtrim($format_shipping[0], ":");
$display_title = $clean_shipping . ':';
Pls can anyone help me remove that tax and none! text that is appearing and also make my payment method text appear without the logos??
Regards,
Dave
ApeShop.com - Mobile Cell Phones, Digital Cameras, Camcorders, Lenses, iPods, PSPs, Watches & more!
http://www.apeshop.com/
Hi All,
I have used the module. it works great..
Is there a chance to replace the text "print you order" with a nice button ?
Please let me know if you know how to![]()
You can simply put the button's img tags instead of the [ print order invoice] text in the language file(s)..
This is excellent addon and should definitely be added to downloads if it's not there yet
Here are the modifications you have to make to add "print buttons" on the account and the order history pages...
in includes/templates/YOUR_TEMPLATE/templates/tpl_account_default.php
FIND
ADD, AFTERCode:echo '<a href="' . zen_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $orders['orders_id'], 'SSL') . '"> ' . zen_image_button(BUTTON_IMAGE_VIEW_SMALL, BUTTON_VIEW_SMALL_ALT) . '</a>
Code: <a href="' . zen_href_link('popup_print_invoice', 'order_id=' . $orders['orders_id'], 'SSL') . '" target="_blank"> ' . zen_image_button(BUTTON_IMAGE_PRINT_SMALL, BUTTON_PRINT_SMALL_ALT) . '</a>
in includes/templates/YOUR_TEMPLATE/templates/tpl_account_history_default.php
FIND
ADD, AFTERCode:<?php echo '<a href="' . zen_href_link(FILENAME_ACCOUNT_HISTORY_INFO, (isset($_GET['page']) ? 'page=' . $_GET['page'] . '&' : '') . 'order_id=' . $history['orders_id'], 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_VIEW_SMALL, BUTTON_VIEW_SMALL_ALT) . '</a>
Code: <a href="' . zen_href_link('popup_print_invoice', 'order_id=' . $history['orders_id'], 'SSL') . '" target="_blank"> ' . zen_image_button(BUTTON_IMAGE_PRINT_SMALL, BUTTON_PRINT_SMALL_ALT) . '</a>
in includes/languages/english/button_names.php
FIND
ADD, AFTERCode:define('BUTTON_IMAGE_VIEW_SMALL', 'button_view.gif');
Code:define('BUTTON_IMAGE_PRINT_SMALL', 'button_print.gif');
Finally, add the two images 'button_view.gif' & 'button_print.gif' attached to this message to the includes/templates/YOUR_TEMPLATE/buttons/english folder.
Please note that the button_view.gif has been resized a little - it is slightly bigger now. Now are basic icons, if you make better ones, please post them here
Hope this helps,
sanji
I've tried to install the mod and it works great except that on the screen, it doesn't show the [Print Order Invoice] but instead shows the text associated with it, please see attached screen shot.
Any idea where I went wrong?![]()
Last edited by Decostyle; 13 Apr 2008 at 12:10 AM.
Old thread, still hope someone replies. good mod but the option to print my invoice isn't showing up on the account_history_default page. pointers?