Results 1 to 10 of 12

Hybrid View

  1. #1
    Join Date
    Jun 2003
    Location
    Newcastle UK
    Posts
    2,925
    Plugin Contributions
    4

    Default Re: With Sales Tax Display Status=1, $0 Sales tax has wrong label

    k,

    I think the problem was that I'm testing slightly differently to you, in that I was changing the primary address via the My Account section. This was masking the fact that the logic to choose the tax descriptions was only relying on the primary address, so changes made to the tax address (either by adding a new address or selecting a non primary address, would not be recognised)

    So with fingers crossed, can you try this

    PHP Code:
        function process() {
          global 
    $order$currencies;

          
    reset($order->info['tax_groups']);
          
    $taxDescription '';
          
    $taxValue 0;
          if (
    STORE_TAX_DISPLAY_STATUS == 1)
          {
            
    $taxAddress zen_get_tax_locations();
            
    $result zen_get_all_tax_descriptions($taxAddress['country_id'], $taxAddress['zone_id']);
            if (
    count($result) > 0)
            {
              foreach (
    $result as $description)
              {
                if (!isset(
    $order->info['tax_groups'][$description]))
                {
                  
    $order->info['tax_groups'][$description] = 0;
                }
              }
            }
          }
          if (
    count($order->info['tax_groups']) > && isset($order->info['tax_groups'][0])) unset($order->info['tax_groups'][0]);
          while (list(
    $key$value) = each($order->info['tax_groups'])) {
            if (
    SHOW_SPLIT_TAX_CHECKOUT == 'true')
            {
              if (
    $value or ($value == && STORE_TAX_DISPLAY_STATUS == )) {
                
    $this->output[] = array('title' => ((is_numeric($key) && $key == 0) ? TEXT_UNKNOWN_TAX_RATE :  $key) . ':',
                                        
    'text' => $currencies->format($valuetrue$order->info['currency'], $order->info['currency_value']),
                                        
    'value' => $value);
              }
            } else
            {
              if (
    $value || ($value == && STORE_TAX_DISPLAY_STATUS == 1))
              {
                
    $taxDescription .= ((is_numeric($key) && $key == 0) ? TEXT_UNKNOWN_TAX_RATE :  $key) . ' + ';
                
    $taxValue += $value;
              }
            }
          }
          if (
    SHOW_SPLIT_TAX_CHECKOUT != 'true' && ($taxValue or STORE_TAX_DISPLAY_STATUS == 1))
          {
            
    $this->output[] = array(
                            
    'title' => substr($taxDescriptionstrlen($taxDescription)-3) . ':' ,
                            
    'text' => $currencies->format($taxValuetrue$order->info['currency'], $order->info['currency_value']) ,
                            
    'value' => $taxValue);
          }
        } 

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,511
    Plugin Contributions
    126

    Default Re: With Sales Tax Display Status=1, $0 Sales tax has wrong label

    Same issue.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Jun 2003
    Location
    Newcastle UK
    Posts
    2,925
    Plugin Contributions
    4

    Default Re: With Sales Tax Display Status=1, $0 Sales tax has wrong label

    k,

    any possibility of a screenshot of checkout_confirmation showing the problem

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,511
    Plugin Contributions
    126

    Default Re: With Sales Tax Display Status=1, $0 Sales tax has wrong label

    Argh! I'm sorry - second patch works perfectly. I had forgotten to change my address when I ran the test again.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  5. #5
    Join Date
    Jun 2003
    Location
    Newcastle UK
    Posts
    2,925
    Plugin Contributions
    4

    Default Re: With Sales Tax Display Status=1, $0 Sales tax has wrong label

    No problem,

    Thanks for all the help in testing back and forth.

 

 

Similar Threads

  1. Replies: 9
    Last Post: 16 Aug 2012, 08:11 AM
  2. New York State Sales Tax by Zip Full Database for Local Sales Tax Mod 2011
    By SCHNiKEN in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 0
    Last Post: 11 Apr 2011, 04:51 AM
  3. Replies: 0
    Last Post: 18 Jan 2009, 07:13 AM
  4. Sales Tax Label Not Showing
    By makulit in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 2
    Last Post: 16 Sep 2008, 04:15 PM
  5. Sales Tax-Order for $50 or less don't pay sales Tax
    By jhobson in forum Basic Configuration
    Replies: 0
    Last Post: 4 Sep 2008, 05:08 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