kieran_mullen Posted February 3, 2010 Share Posted February 3, 2010 How would we best make the invoice/packing slip half a page? Most people dont order more than one item so it doesnt make sense to take up an entire sheet. We are trying to be green & all. Is there an add on? Thanks! Link to comment Share on other sites More sharing options...
web-project Posted February 3, 2010 Share Posted February 3, 2010 How would we best make the invoice/packing slip half a page? Most people dont order more than one item so it doesnt make sense to take up an entire sheet. We are trying to be green & all. Is there an add on? Thanks! I haven't seen any invoices with half page size in real life. Get the life to be green: the paper is recycled!!! Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here! 8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself. Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues. Any issues with oscommerce, I am here to help you. Link to comment Share on other sites More sharing options...
tigergirl Posted February 3, 2010 Share Posted February 3, 2010 I haven't seen any invoices with half page size in real life. Get the life to be green: the paper is recycled!!! Well it's a petty that so many businesses think it's fine to waste resources - probably half the reason the world is in recession. And I like my trees and Red Squirrels and don't want to see their habbitat threatened even more. Recycling isn't the answer as it uses a LOT of resources and chemicals and not everyone does recycle anyway. That is my tuppence worth and I'm glad the OP is thinking eco. But I spent a lot of time to get it to work on A5 Portrait. This won't suit everyone and I think I added some fields and removed some too so you may need to check what may need to be added to the languge file. There is no VAT/Tax calculated on here so it will need to be altered if you're charging VAT. Here it is, hope it helps, from admin/invoice.php: <!-- body_text //--> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="2"> </tr> <tr> <td colspan="2"><?php echo tep_draw_separator(); ?></td> </tr> <tr> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2"> </tr> <tr> <td class="main"><?php echo nl2br(STORE_NAME_ADDRESS); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '5'); ?></td> </tr> <tr> <td class="main"><?php echo nl2br(STORE_OWNER_EMAIL_ADDRESS); ?></td> </tr> <tr> <td class="main" align="left"><?php echo ENTRY_WEB_URL; ?></td> </tr> </table></td> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'Your_logo_here.jpg', 'Your_img_title_here', '300', '75'); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '5'); ?></td> </tr> <tr> </tr> <tr> </tr> <td class="pageHeading" align="right"><?php echo ENTRY_PAGE_TITLE; ?></td> </tr> </table></td> </table></td> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td colspan="3"><?php echo tep_draw_separator(); ?></td> </tr> <tr> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main"><b><?php echo ENTRY_SOLD_TO; ?></b></td> </tr> <tr> <td class="main"><?php echo tep_address_format($order->customer['format_id'], $order->customer, 1, '', '<br>'); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '5'); ?></td> </tr> <tr> </table></td> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main"><b><?php echo ENTRY_SHIP_TO; ?></b></td> </tr> <tr> <td class="main"><?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br>'); ?></td> </tr> </table></td> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main"><b><?php echo ENTRY_ORDER_NUMBER; ?></b></td> </tr> <tr> <td class="main"><?php echo $oID; ?></td> </tr> <tr> <td class="main"><b><?php echo ENTRY_ORDER_DATE; ?></b></td> </tr> <tr> <td class="main"><?php echo $date_purchased; ?></td> </tr> <tr> <td class="main"><b><?php echo ENTRY_PAYMENT_METHOD; ?></b></td> </tr> <tr> <td class="main"><?php echo $order->info['payment_method']; ?></td> </tr> </table></td> <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '5'); ?></td> </tr> <tr> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="dataTableHeadingRow"> <td class="dataTableHeadingContent" colspan="2"><?php echo TABLE_HEADING_PRODUCTS; ?></td> <td class="dataTableHeadingContent" align="left"><?php echo TABLE_HEADING_PRODUCTS_MODEL; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_PRICE_EXCLUDING_TAX; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_TOTAL_EXCLUDING_TAX; ?></td> </tr> <?php for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) { echo ' <tr class="dataTableRow">' . "\n" . ' <td class="dataTableContent" valign="top" align="right">' . $order->products[$i]['qty'] . ' x</td>' . "\n" . ' <td class="dataTableContent" valign="top">' . $order->products[$i]['name']; if (isset($order->products[$i]['attributes']) && (($k = sizeof($order->products[$i]['attributes'])) > 0)) { for ($j = 0; $j < $k; $j++) { echo '<br><nobr><small> <i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value']; if ($order->products[$i]['attributes'][$j]['price'] != '0') echo ' (' . $order->products[$i]['attributes'][$j]['prefix'] . $currencies->format($order->products[$i]['attributes'][$j]['price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . ')'; echo '</i></small></nobr>'; } } echo ' </td>' . "\n" . ' <td class="dataTableContent" align="left" valign="top">' . $order->products[$i]['model'] . '</td>' . "\n"; echo ' <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format($order->products[$i]['final_price'], true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "\n" . ' <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "\n"; echo ' </tr>' . "\n"; } ?> <tr> <td align="right" colspan="5"><table border="0" cellspacing="0" cellpadding="2"> <?php for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) { echo ' <tr>' . "\n" . ' <td align="right" class="smallText">' . $order->totals[$i]['title'] . '</td>' . "\n" . ' <td align="right" class="smallText">' . $order->totals[$i]['text'] . '</td>' . "\n" . ' </tr>' . "\n"; } ?> </table></td> </tr> </table></td> </tr> </table> <center><br> <font size="-2" face="Arial"> Your can add your own text here.</font></center> <!-- body_text_eof //--> I'm feeling lucky today......maybe someone will answer my post! I do try and answer a simple post when I can just to give something back. ------------------------------------------------ PM me? - I'm not for hire Link to comment Share on other sites More sharing options...
kieran_mullen Posted February 3, 2010 Author Share Posted February 3, 2010 If you print many invoices it also saves money. Perhaps you didnt think of that? If you weren't so busy giving your personal opinion, that no one cares about, you would notice that. I haven't seen any invoices with half page size in real life. Get the life to be green: the paper is recycled!!! Link to comment Share on other sites More sharing options...
web-project Posted February 7, 2010 Share Posted February 7, 2010 Recycling isn't the answer as it uses a LOT of resources and chemicals and not everyone does recycle anyway. but the problem is not in recycling, only in laziness of humans. Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here! 8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself. Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues. Any issues with oscommerce, I am here to help you. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.