Thread: total in $order

Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1
    Join Date
    Mar 2007
    Posts
    20
    Plugin Contributions
    0

    Default Tax disappear after order (on paiment)

    Hi,

    Everything works well, the order has its VAT and postal fees.

    On the other hand, once on the payment page of the bank (using the ATOS module, for french bank), the total displayed is the product price + price tax + postal charges WITHOUT tax. The VAT of postal charges disappeared.


    I dont' know why, but $order->info['total'] change between ot_total.php and ATOS atos.php.

    Do you know why ?

    Thanks.

  2. #2
    Join Date
    Mar 2007
    Posts
    20
    Plugin Contributions
    0

    Default total in $order

    Hi,

    On the '?main_page=checkout_payment' (and after), the order_total module gives me the right total (product price + product tax + shipping + shipping tax) but if I read the object $order (print_r $order) on the same page, I have for total : product price + product tax + shipping, without shipping tax.

    So, when I use credit card module or other e-payment, the total is wrong !

    I have already looked everywhere, now, I'm lost...

    Thank you.

  3. #3
    Join Date
    Mar 2007
    Posts
    20
    Plugin Contributions
    0

    Default total in $order

    Hi,

    I hope not to make a mistake by posting here.
    On a new installation, without any modification, I have this problem :

    On the '?main_page=checkout_payment' (and after), the order_total module gives me the right total (product price + product tax + shipping + shipping tax) but if I read the object $order (print_r $order) on the same page, I have for total : product price + product tax + shipping, without shipping tax.

    So, when I use credit card module or other e-payment, the total is wrong !

    $order['info'] gives :
    Code:
    [info] => Array
            (
                [order_status] => 1
                [currency] => EUR
                [currency_value] => 1.00000000
                [payment_method] => 
                [payment_module_code] => 
                [coupon_code] => 
                [shipping_method] => Frais de Livraison (Montant)
                [shipping_module_code] => flat_flat
                [shipping_cost] => 5.00
                [subtotal] => 100
                [tax] => 15.9663865546
                [total] => 105
                [tax_groups] => Array
                    (
                        [TVA 19,6%] => 15.9663865546
                    )
    
                [comments] => 
                [ip_address] => 127.0.0.1 - 127.0.0.1
            )
    [shipping cost] is OK but there's not tax on it. So, [total] is wrong.

    The total shown with order_total module is OK ! Shipping tax is included and total is right (105.95 for this example).

    Thanks.

  4. #4
    Join Date
    Mar 2007
    Posts
    20
    Plugin Contributions
    0

    Default Re: total in $order

    I've just tried to print $order in different part of the index.php?main_page=checkout_payment

    In includes\modules\pages\checkout_payment\header_php.php :
    Code:
    [info] => Array
            (
                [order_status] => 1
                [currency] => EUR
                [currency_value] => 1.00000000
                [payment_method] => 
                [payment_module_code] => 
                [coupon_code] => 
                [shipping_method] => Envoi Colissimo (Colissimo suivi + assurance)
                [shipping_module_code] => colissimo_colissimo
                [shipping_cost] => 5.1
                [subtotal] => 100
                [tax] => 16.3879598662
                [total] => 105.1
                [tax_groups] => Array
                    (
                        [TVA Intra] => 16.3879598662
                    )
    In includes\classes\order_total.php : same as above

    In includes\modules\order_total\ot_total.php (which gives the good result : 5.1 + 19.6% = 6.1) :
    Code:
    [info] => Array
            (
                [order_status] => 1
                [currency] => EUR
                [currency_value] => 1.00000000
                [payment_method] => 
                [payment_module_code] => 
                [coupon_code] => 
                [shipping_method] => Envoi Colissimo (Colissimo suivi + assurance)
                [shipping_module_code] => colissimo_colissimo
                [shipping_cost] => 6.1
                [subtotal] => 100
                [tax] => 17.3879598662
                [total] => 106.1
                [tax_groups] => Array
                    (
                        [TVA Intra] => 17.3879598662
                    )

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: total in $order

    What version of Zen Cart are you using?
    Please post your atos.php module code here.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Mar 2007
    Posts
    20
    Plugin Contributions
    0

    Default Re: total in $order

    I'm using 1.3.7 + your patches (1.3.8, 1.4.0)

    I was wrong when I said there's a link with atos because the page I use to show the problem (index.php?main_page=checkout_payment) is similar on all the zencart installation and don't use the payment module atos.php.

    I really don't understand why, on the same page, we can have two different values for $order->info['total'] and why the right value is only on includes\modules\order_total\ot_total.php !

    Thank you for your help.
    Attached Files Attached Files

  7. #7
    Join Date
    Mar 2007
    Posts
    20
    Plugin Contributions
    0

    Default Re: total in $order

    So, you have no idea ?

  8. #8
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: total in $order

    I'm trying to figure out why the payment module you're using is having problems when all the other payment modules are working fine ...
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Mar 2007
    Posts
    20
    Plugin Contributions
    0

    Default Re: total in $order

    But then, it's normal to have different value for $order->info['total'] ? Even in the classes/modules included in the ZenCart installation ?

    It's really a big mystery for me...

  10. #10
    Join Date
    Mar 2007
    Posts
    20
    Plugin Contributions
    0

    Default Re: total in $order

    No news, I'm dead...

    Losting money on each sale.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Help with Cart total / order sub total
    By philip937 in forum General Questions
    Replies: 3
    Last Post: 19 Dec 2012, 11:46 AM
  2. v151 order total different from cart total
    By s_p_ike in forum Bug Reports
    Replies: 9
    Last Post: 9 Dec 2012, 09:29 AM
  3. Zencart order total does not match total at monsterpay
    By momoftwo in forum Addon Payment Modules
    Replies: 1
    Last Post: 12 Mar 2010, 02:33 PM
  4. I want an order-total module to display total w/o tax
    By ivanc in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 4
    Last Post: 31 Oct 2009, 12:11 PM
  5. Sub Total not matching actual total of products in order
    By PadreHomer in forum General Questions
    Replies: 0
    Last Post: 10 Sep 2008, 11:54 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR