Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Problem with ot_tax.php

    Hi Everyone
    I used $included_files = get_included_files();
    to get the list of all the files which are getting called on the current page.
    this is the sequence

    public_html/includes/classes/order_total.php
    includes/languages/english/modules/order_total/ot_subtotal.php
    public_html/includes/modules/order_total/ot_subtotal.php
    public_html/includes/languages/english/modules/order_total/ot_shipping.php
    public_html/includes/modules/order_total/ot_shipping.php
    public_html/includes/languages/english/modules/order_total/ot_coupon.php
    public_html/includes/modules/order_total/ot_coupon.php
    public_html/includes/languages/english/modules/order_total/ot_tax.php
    public_html/includes/modules/order_total/ot_tax.php

    I went to public_html/includes/modules/order_total/ot_tax.php and pasted this code at the start and end to track the values of $order->info['tax_groups'] (inside function process())

    Code:
    function process()
    global $order, $currencies;
    
    
    //Added Code
       echo "START";
       print_r($order);
      echo "END";
    //Added Code
    I am not getting any value for $order

    Where might $order be loosing the value?
    Tutorials on Zen Cart
    http://tutorials.zen-cart.com/index.php
    ---------------
    advanced.programmer at gmail dot com
    In love with Zen Cart!!

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Problem with ot_tax.php

    The "process" function (element) only executes during order-completion. Thus you're not getting any output since that element is not being called.
    .

    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.

  3. #3
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: Problem with ot_tax.php

    Yeah, I understood that now...thanks for the response!
    Tutorials on Zen Cart
    http://tutorials.zen-cart.com/index.php
    ---------------
    advanced.programmer at gmail dot com
    In love with Zen Cart!!

 

 

Similar Threads

  1. Tax calculation below a threshold, ot_tax.php
    By donplay in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 16
    Last Post: 19 Feb 2010, 02:51 PM
  2. getting errors from ot_tax.php
    By mohinder in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 10
    Last Post: 23 Apr 2007, 10:16 PM
  3. getting error msg from ot_tax.php
    By gulfsprite in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 18
    Last Post: 12 Apr 2007, 04:25 AM
  4. Problem with array on ot_tax ? and other problems
    By donnerkul in forum PayPal Express Checkout support
    Replies: 6
    Last Post: 3 Jan 2007, 11:36 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