Leak-Proof Posted October 12, 2006 Posted October 12, 2006 I have added the Professional Invoices and Packing Slip contribution to my shop and it seems to be working well except that it adds a couple of entries to the Sold To box on the new invoice. I removed one of them easily (VAT), but I would like to use the "Companies Tax Id Number" component. The tax id number is presently collected when my customers make their account, so it is available in the database in the address_book table as entry_company_tax_id. The new section of code that puts it in the invoice is as follows: <td background="../images/borders/maingrey_04.gif"> <img src="../images/borders/maingrey_04.gif" width="11" height="21" alt=""></td> <td align="center" bgcolor="#CCCCCC"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="main"> <tr> <td align="left" valign="top" ><b><?php echo ENTRY_SOLD_TO; ?></b></td> </tr> <tr> <td align="left" valign="bottom" ><?php echo tep_draw_separator('pixel_trans.gif', '1', '5'); ?></td> </tr> <tr> <td ><?php echo tep_address_format($order->customer['format_id'], $order->customer, 1, '', '<br>'); ?></td> </tr> <tr> <td > </td> </tr> <tr> <td ><?php echo tep_draw_separator('pixel_trans.gif', '1', '15'); ?></td> </tr> <tr> <td ><b><?php echo ENTRY_TELEPHONE_NUMBER; ?></b> <?php echo $order->customer['telephone']; ?></td> </tr> <tr> <td ><b><?php echo IMAGE_EMAIL; ?>:</b> <?php echo '<a href="mailto:' . $order->customer['email_address'] . '"><u>' . $order->customer['email_address'] . '</u></a>'; ?></td> </tr> <tr> <td ><b><?php echo ENTRY_PIVA; ?></b> <?php echo $order->billing['piva']; ?></td> </tr> <tr> <td > </td> </tr> </table></td> <td background="../images/borders/maingrey_06.gif"> <img src="../images/borders/maingrey_06.gif" width="19" height="21" alt=""></td> </tr> <tr> I changed the highlighted section of code [ echo ENTRY_PIVA; ?></b> <?php echo $order->billing['piva']; ] to echo ENTRY_COMPANY_TAX_ID; ?></b> <?php echo $order->address_book['entry_company_tax_id']; but that just shows the heading "Company Tax Id number" without the actual company tax id number beside it. Can someone help with the correct bit of code? Thanks I like these mods, there fun! ...65 70 72 75 80 85 125+ contributions installed and counting... Tools I'm using: OSC2.2 milestone2, Filezilla for FTP, PHP Designer 2007PE (nice), Araxis Merge 6.5 to compare files, XP(my box), Remote Server is shared Apache 1.3 Cpanel, CURL, and PHPmyAdmin through my hosts Cpanel to mess up the database.
andrew40 Posted November 29, 2006 Posted November 29, 2006 Hi I am thinking of using this contribution, how did you remove the VAT? I also have a problem with VAT showing on the payment confirmation and wondered how I could remove that as well. I use VAT inclusive but when I installed a shipping contribution for the UK the VAT shows the VAT content of the shipping cost which I want removed as wel, bizarre...
Leak-Proof Posted November 30, 2006 Author Posted November 30, 2006 Hi I am thinking of using this contribution, how did you remove the VAT? I also have a problem with VAT showing on the payment confirmation and wondered how I could remove that as well. I use VAT inclusive but when I installed a shipping contribution for the UK the VAT shows the VAT content of the shipping cost which I want removed as wel, bizarre... I can't remember which file the contribution is using, but I think I just remove the line of code that refered to the VAT. I can send you my file if you like, just remind me which one it is. RJ I like these mods, there fun! ...65 70 72 75 80 85 125+ contributions installed and counting... Tools I'm using: OSC2.2 milestone2, Filezilla for FTP, PHP Designer 2007PE (nice), Araxis Merge 6.5 to compare files, XP(my box), Remote Server is shared Apache 1.3 Cpanel, CURL, and PHPmyAdmin through my hosts Cpanel to mess up the database.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.