Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2008
    Posts
    6
    Plugin Contributions
    0

    Default Customer Order - VAT - Help

    Hi everyone,

    I was hoping someone would shed some light on my problem. Basically I have set up a CSV export of my orders, however i am missing a piece of information which is the order total before VAT is applied and the actual VAT value (not the precentage).

    Can someone please tell me if Zencart already collects this information, and where in the database structure i can find it.

    However if it doesn't collect it can somebody tell me where the file is, which processes the orders and inserts all the information into the tables so I can add it to the database and then pull it out when i do my exports.

    Thanks Everyone!!!

  2. #2
    Join Date
    Apr 2008
    Location
    UK
    Posts
    326
    Plugin Contributions
    1

    Default Re: Customer Order - VAT - Help

    Hi

    You can find the information in the orders_total table.

    Hope this helps.

    Phil

  3. #3
    Join Date
    Dec 2008
    Posts
    6
    Plugin Contributions
    0

    Default Re: Customer Order - VAT - Help

    thanks.

    I worked it out, for anyone else who may want to know how to insert additional information into the orders table.
    Set up your field(s) in phpmyadmin (or whatever you want) then in root>includes>classes>orders.php at about line 567(ish) you will find an array called $sql_data_array. Its really long so you can't miss it.
    It is within this array that you insert your extra custom field and the associated value.
    Add the field name in the array so it corresponds with your table structure.

 

 

Similar Threads

  1. v151 including shipping costs to order total for VAT calculation and incorrect VAT
    By McLovin in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 9 Nov 2014, 12:31 PM
  2. v151 Trade site charging VAT if customer does not provide an EU Vat Number
    By irishshopper in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 28 Oct 2014, 02:29 PM
  3. Customer Order - VAT - Serious Problem -Help
    By rabz in forum Managing Customers and Orders
    Replies: 1
    Last Post: 22 Dec 2008, 05:04 PM
  4. customer VAT number
    By moodle in forum Managing Customers and Orders
    Replies: 1
    Last Post: 6 Jul 2008, 07:59 PM
  5. HELP - admin customer order errors!
    By Bostitch in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 28 May 2008, 12:20 AM

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