Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2007
    Posts
    11
    Plugin Contributions
    0

    help question print invoice popup + vat-number

    Hi!

    Can anybody help me? I need to add customer VAT-number to the printable invoice generated by the print_invoice_popup mod.

    Iīm using the VAT-mod for European countries which gives me the VAT-number of each customer. I just donīt know how to make it show in the invoice.

    Many thanks for the help!

  2. #2
    Join Date
    Apr 2008
    Posts
    351
    Plugin Contributions
    4

    Default Re: print invoice popup + vat-number

    Quote Originally Posted by juza123 View Post
    Hi!

    Can anybody help me? I need to add customer VAT-number to the printable invoice generated by the print_invoice_popup mod.

    Iīm using the VAT-mod for European countries which gives me the VAT-number of each customer. I just donīt know how to make it show in the invoice.

    Many thanks for the help!
    Which invoice, the e-mailed one, or when you check orders history? It's already on the admin orders invoice.

  3. #3
    Join Date
    Jan 2007
    Posts
    11
    Plugin Contributions
    0

    Default Re: print invoice popup + vat-number

    I want to add the vat number to the invoice generated by the popup mod. Both the checkout and account sides.

    I know that it should show in the e-mail but for some reason it doesnīt. Iīve done all the fixes suggested in the forum but no luck. The database shows the VAT-number but the e-mail not. Well that is not a big problem but it has to be in the invoice or otherwise international customers (companies) canīt make the payment.

    This is probably quite easily done but Iīm not a programmer.

  4. #4
    Join Date
    Apr 2008
    Posts
    351
    Plugin Contributions
    4

    Default Re: print invoice popup + vat-number

    Quote Originally Posted by juza123 View Post
    I want to add the vat number to the invoice generated by the popup mod. Both the checkout and account sides.

    I know that it should show in the e-mail but for some reason it doesnīt. Iīve done all the fixes suggested in the forum but no luck. The database shows the VAT-number but the e-mail not. Well that is not a big problem but it has to be in the invoice or otherwise international customers (companies) canīt make the payment.

    This is probably quite easily done but Iīm not a programmer.
    You want the VAT # to show up on the E-mail that is sent to the customer and on the Invoice that the customer can print from the Popup Print Invoice Mod that allows the printing of the customers invoice when checking out and if they view their orders history?

    Also, what version of ZenCart are you using?

  5. #5
    Join Date
    Jan 2007
    Posts
    11
    Plugin Contributions
    0

    Default Re: print invoice popup + vat-number

    Quote Originally Posted by JTheed View Post
    You want the VAT # to show up on the E-mail that is sent to the customer and on the Invoice that the customer can print from the Popup Print Invoice Mod that allows the printing of the customers invoice when checking out and if they view their orders history?

    Also, what version of ZenCart are you using?
    Thank you for your time!

    Exactly, both the order history and checkout invoices. Iīm using zen cart 1.3.8.

    I couldnīt make the european vat mod work so I created the database field using these instructions starting from #14: http://www.zen-cart.com/forum/showth...t=73181&page=2

    When I go to the client account from the admin the VAT-number shows just fine in the invoice, but i cant make it to show to the client when the Popup Mod is used (checkin out and order history).


    I used these instructions (#73, same thread) to make the VAT-number to show in the admin side:

    ----------------------------------------------------------------------------
    So, in admin/invoice.php add this query at line 28

    $oID = zen_db_prepare_input($_GET['oID']);
    //THESE LINES ADDED TO GET INFO FROM CUSTOMERS TABLE
    $sql = "SELECT o.customers_id, c.customers_taxid from " . TABLE_ORDERS . " o, " . TABLE_CUSTOMERS . " c WHERE c.customers_id= o.customers_id and o.orders_id = '" . $oID . "'";
    $chk_customers_taxid = $db->Execute($sql);
    $customers_taxid = $chk_customers_taxid->fields['customers_taxid'];

    so now you can use the $customers_taxid variable where you want, for example in one of the table cells
    <?php echo ENTRY_TAXID_NUMBER; ?></b><?php echo ' ' . $customers_taxid; ?>

    ----------------------------------------------------------------------------

    But since the Popup Invoice Mod doesnīt use admin/invoice.php it doesnt show to the client and Iīve not been able to find the place where to add the code/codes. I suppose it should be in the includes/modules/print_invoice.php file but where?

 

 

Similar Threads

  1. v150 Print Popup Invoice for v1.5?
    By futurist71 in forum Upgrading to 1.5.x
    Replies: 19
    Last Post: 1 Mar 2019, 10:35 PM
  2. popup print invoice - no content
    By patternman in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 2 Dec 2011, 07:47 PM
  3. Client Invoice - problems customizing the popup-print-invoice addon
    By LloydR in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 12 Jan 2011, 10:41 AM
  4. Print Invoice Popup
    By shanesoine in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 24 Nov 2010, 11:52 AM
  5. Popup Print Invoice Version 1.1
    By Decostyle in forum All Other Contributions/Addons
    Replies: 11
    Last Post: 15 Feb 2009, 08:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg