SG_Jimmy Posted November 26, 2012 Posted November 26, 2012 http://img.photobucket.com/albums/v189/sg_jimmy/invoice.png Hi guys need some help to change something on my invoice which im going to use as a PO. 1) How can i remove those 3 wording at the side of invoice I have highlighted in red. 2) a)How can i remove the unit purchased being in front of the Item Description b)how can I add 1 more column for unit 3 I just want the tax to be show Item Description, unit purchased, unit price and total unit price. isit possible to remove the tax column of individual item ? i just want the tax to be shown @ bottom right thanks guys
♥bruyndoncx Posted November 26, 2012 Posted November 26, 2012 yes, that is all very easy the top and bottom line is your internetbrowser that prints header and footer elements, check your page setup in IE the invoice details are in table rows (TR elements) and table data cells (TD elements) If you find the <TD> </TD> combo's, you can remove them or move them around as you see fit. you have a TR line for the column headers, and for each product within a while loop. Just make a copy of the invoice and start experimenting KEEP CALM AND CARRY ON I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support). So if you are still here ? What are you waiting for ?! Find the most frequent unique errors to fix: grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt
SG_Jimmy Posted November 27, 2012 Author Posted November 27, 2012 yes, that is all very easy the top and bottom line is your internetbrowser that prints header and footer elements, check your page setup in IE the invoice details are in table rows (TR elements) and table data cells (TD elements) If you find the <TD> </TD> combo's, you can remove them or move them around as you see fit. you have a TR line for the column headers, and for each product within a while loop. Just make a copy of the invoice and start experimenting Thanks i solve the page top and bottom line issue. can u tell me where can i find the invoice file and please be more specific
♥14steve14 Posted November 27, 2012 Posted November 27, 2012 Look in admin/invoice.php. REMEMBER BACKUP, BACKUP AND BACKUP
SG_Jimmy Posted December 7, 2012 Author Posted December 7, 2012 Look in admin/invoice.php. thanks i found the invoice file, Can any1 guide me on how to move the unit from front of the item to a column
SG_Jimmy Posted December 7, 2012 Author Posted December 7, 2012 Hi I have try many time but still fail. I have attached my invoice file if any1 can help :) invoice.php
♥14steve14 Posted December 7, 2012 Posted December 7, 2012 Tried to break this down for you, to see what was happening and why. To seperate the quantity from the price and to create a new column name before the product name Find <tr class="dataTableHeadingRow"> <td class="dataTableHeadingContent" colspan="2"><?php echo TABLE_HEADING_PRODUCTS; ?></td> and change it to <tr class="dataTableHeadingRow"> <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_PRODUCTS_QTY; ?></td> <td class="dataTableHeadingContent" colspan="2"><?php echo TABLE_HEADING_PRODUCTS; ?></td> To create the new column showing the quantity Find 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']; and change it to for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) { echo ' <tr class="dataTableRow">' . "\n" . ' <td class="dataTableContent" valign="top">' . $order->products[$i]['qty'] . '</td>' . "\n" . ' <td class="dataTableContent" valign="top">' . $order->products[$i]['name']; To move the total column over one column to realign Find <td align="right" colspan="8"><table border="0" cellspacing="0" cellpadding="2"> and change it to <td align="right" colspan="9"><table border="0" cellspacing="0" cellpadding="2"> In your admin/includes/languages/english/invoice.php find define('TABLE_HEADING_PRODUCTS', 'Products'); and change to define('TABLE_HEADING_PRODUCTS_QTY', 'Qty'); define('TABLE_HEADING_PRODUCTS', 'Products'); I think you can also do something similar to the packing slip page as well. REMEMBER BACKUP, BACKUP AND BACKUP
Recommended Posts
Archived
This topic is now archived and is closed to further replies.