Page 3 of 3 FirstFirst 123
Results 21 to 27 of 27
  1. #21
    Join Date
    Mar 2008
    Posts
    30
    Plugin Contributions
    0

    Default Re: Discount groups and tax calc problem with tax-included pricing

    No worries, thanks for trying

  2. #22
    Join Date
    Mar 2009
    Posts
    221
    Plugin Contributions
    1

    Default Re: Discount groups and tax calc problem with tax-included pricing

    Directed here from the 1.3.8a bug fix thread...

    This thread is a mess...

    Is this the correct UPDATED code (being used in 1.3.9) for includes/modules/order_total/ot_group_pricing.php ???????

    Code:
      function get_order_total() {
        global  $order;
        $order_total_tax = $order->info['tax'];
        $order_total = $order->info['total'];
        if ($this->include_shipping != 'true') $order_total -= $order->info['shipping_cost'];
        if ($this->include_shipping != 'true') $order_total_tax -= $order->info['shipping_tax'];
        if ($this->include_tax != "true" && $this->include_shipping != 'true') $order_total += $order->info['shipping_tax'];
        if ($this->include_tax != 'true') $order_total -= $order->info['tax'];
        $orderTotalFull = $order_total;
        $order_total = array('totalFull'=>$orderTotalFull, 'total'=>$order_total, 'tax'=>$order_total_tax);
    
        return $order_total;
      }

    And shouldn't this thread have [Done v1.3.9] prefixed ?????
    Last edited by Crunch; 11 Feb 2010 at 07:47 PM.

  3. #23
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Discount groups and tax calc problem with tax-included pricing

    Actually it wasn't much of a mess at all if you followed Wilt's posts and ignore all the other posts in tis thread (some of which don't appear to have followed all of Wilt's instructions) I followed Wilt's posts and made ALL the changes and mods he recommended in this thread since after his posted changes, the person reporting the issue verified that the application of his posts were what worked..:

    http://www.zen-cart.com/forum/showpo...72&postcount=2
    http://www.zen-cart.com/forum/showpo...24&postcount=4
    http://www.zen-cart.com/forum/showpo...45&postcount=9

    Quote Originally Posted by Crunch View Post
    Directed here from the 1.3.8a bug fix thread...

    This thread is a mess...

    Is this the correct UPDATED code (being used in 1.3.9) for includes/modules/order_total/ot_group_pricing.php ???????

    Code:
      function get_order_total() {
        global  $order;
        $order_total_tax = $order->info['tax'];
        $order_total = $order->info['total'];
        if ($this->include_shipping != 'true') $order_total -= $order->info['shipping_cost'];
        if ($this->include_shipping != 'true') $order_total_tax -= $order->info['shipping_tax'];
        if ($this->include_tax != "true" && $this->include_shipping != 'true') $order_total += $order->info['shipping_tax'];
        if ($this->include_tax != 'true') $order_total -= $order->info['tax'];
        $orderTotalFull = $order_total;
        $order_total = array('totalFull'=>$orderTotalFull, 'total'=>$order_total, 'tax'=>$order_total_tax);
    
        return $order_total;
      }
    And shouldn't this thread have [Done v1.3.9] prefixed ?????
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  4. #24
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,813
    Plugin Contributions
    124

    Default Re: Discount groups and tax calc problem with tax-included pricing

    Same issue occurs with coupons; fixes posted here:

    http://www.zen-cart.com/forum/showthread.php?t=150689

    Scott
    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. #25
    Join Date
    Mar 2009
    Posts
    221
    Plugin Contributions
    1

    Default Re: Discount groups and tax calc problem with tax-included pricing

    Quote Originally Posted by wilt View Post
    The fix is to add this line

    PHP Code:
        if ($this->include_tax != "true" && $this->include_shipping != 'true'$order_total += $order->info['shipping_tax']; 
    This should be added after the similar lines we changed earlier to adjuts the shipping tax.

    I now get

    Sub-Total:£100.00
    Flat Rate (Best Way):£10.00
    Group Discount:-£5.00
    VAT 15%:£13.70
    Total:£105.00
    Which file do I add this line to (order, ot_shipping, ot-group_pricing) ? It's not clear to me. Thanks!

  6. #26
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,813
    Plugin Contributions
    124

    Default Re: Discount groups and tax calc problem with tax-included pricing

    If you look at the thread

    http://www.zen-cart.com/forum/showthread.php?t=150689

    you will see all the required fixes summarized.
    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.

  7. #27
    Join Date
    Mar 2009
    Posts
    221
    Plugin Contributions
    1

    Default Re: Discount groups and tax calc problem with tax-included pricing

    Quote Originally Posted by swguy View Post
    you will see all the required fixes summarized.
    Thanks!!! Exactly what I needed.

 

 
Page 3 of 3 FirstFirst 123

Similar Threads

  1. v151 Discount coupon giving too much off with tax-included pricing enabled
    By nigelt74 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 3
    Last Post: 16 Apr 2014, 11:05 AM
  2. Replies: 16
    Last Post: 8 Jul 2010, 08:51 PM
  3. Subtracting tax from a set price: how do I do tax-included pricing?
    By willem in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 2
    Last Post: 3 May 2009, 08:34 AM
  4. Replies: 0
    Last Post: 13 Jun 2008, 12:57 PM
  5. Tax not being calculated correctly -- with tax-included pricing
    By nkrcs in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 2
    Last Post: 11 Jun 2008, 07: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