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
Code:
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>
ADD, AFTER
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
Code:
<?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>
ADD, AFTER
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
Code:
define('BUTTON_IMAGE_VIEW_SMALL', 'button_view.gif');
ADD, AFTER
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