Results 1 to 10 of 81

Hybrid View

  1. #1
    Join Date
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,566
    Plugin Contributions
    74

    Default Re: SplitTaxLines mod support thread

    Hi guys,

    Someone supported me to update the CTE module with STL, which I have done without a problem.

    But, I am having a problem with STL with the classic template and version 1.3.8a:

    GST (5%) - for all goods in Canada
    PST (7%) - for all goods in BC
    GST (5%) - for all services in Canada

    When I install STL it displays the tax for each product as Array% and the GST is only calculated on the second item plus shipping and the PST is calculated on only the second item.

    Qty. Item Name Tax Total
    1 x test prod 1 cat 2 Array% $55.00
    2 xt est prod 1 Array% $20.00

    Sub-Total: $75.00

    Flat Rate (Best Way): $5.00

    GST (5%): $1.25 (should be $4.00)

    PST (7%): $1.40 (should be $5.25)

    Total: $89.25 (total is correct)
    Everything is 100% perfect when STL is set to false.

    When I activate CTE with STL the totals are always correct. I have tested STL without CTE to get the above errors.

  2. #2
    Join Date
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,566
    Plugin Contributions
    74

    Default Re: SplitTaxLines mod support thread

    CTE with zen_get_multiple_tax_rates() support is completed and is ready to release. But it seems pointless to do so with the STL errors...

  3. #3
    Join Date
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,566
    Plugin Contributions
    74

    Default Re: SplitTaxLines mod support thread

    Ok, solved the array% problem which was due to missing some lines for merging on tpl_checkout_confirmation_default.php. I'm now using the file included with the package and receiving the incorrect amounts on each tax line. All the taxes skip the first item in their calculations and only display on the last item of each tax class.

  4. #4
    Join Date
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,566
    Plugin Contributions
    74

    Default Re: SplitTaxLines mod support thread

    The error only occurs if MORE than 1 item is added to the cart. I know my latest version of CTE is good so I will release it publicly. Hopefully alan can fix this major bug in STL.

  5. #5
    Join Date
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,566
    Plugin Contributions
    74

    Default Re: SplitTaxLines mod support thread

    There error in the code is coming from includes/classes/order.php:

    PHP Code:
          if (isset($this->info['tax_groups'][$products_tax_description[$tax_entry_description]])) {
            
    $this->info['tax_groups'][$tax_entry_description] += $tax_add;
          } else {
            
    $this->info['tax_groups'][$tax_entry_description] = $tax_add;
          } 
    Specifically...

    PHP Code:
          if (isset($this->info['tax_groups'][$products_tax_description[$tax_entry_description]])) { 
    ...is always returning false and therefore the tax_groups value is always going to be the tax_add of the last product. Adding += to both lines makes it work, but it would be better to have the line above returning true.

  6. #6
    Join Date
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,566
    Plugin Contributions
    74

    Default Re: SplitTaxLines mod support thread

    Change that line to:

    PHP Code:
    if (isset($this->info['tax_groups'][$tax_entry_description])) { 
    And the issue appears to be solved for the order_total, but I will have to look at the shipping next...

  7. #7
    Join Date
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,566
    Plugin Contributions
    74

    Default Re: SplitTaxLines mod support thread

    The shipping looks fine. Just change line 578 to the line I've put above and all issues will be solved. The newest version of CTE is available at http://www.numinix.com and has also been uploaded to the Zen Cart downloads section and should be active soon.

    I'll leave it up to alan to OFFICIALLY update his module with the fix.

 

 

Similar Threads

  1. How Did You Hear About Us? Referrals Mod [Support Thread]
    By martyndw2005 in forum All Other Contributions/Addons
    Replies: 364
    Last Post: 30 Mar 2026, 02:40 PM
  2. Local Sales Tax Mod - Support Thread
    By LadyHLG in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 658
    Last Post: 22 Dec 2025, 05:29 PM
  3. v154 Mod List Support Thread
    By swguy in forum Addon Admin Tools
    Replies: 51
    Last Post: 31 Dec 2023, 12:13 PM
  4. Multi Cross Sell mod [Support thread]
    By gilby in forum All Other Contributions/Addons
    Replies: 475
    Last Post: 11 Apr 2020, 10:44 PM
  5. Just another Cross-Sell mod (support thread)
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 702
    Last Post: 3 Nov 2012, 04:30 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