Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2015
    Location
    USA
    Posts
    157
    Plugin Contributions
    0

    Default How not to include sales tax when calculating shipping

    Today a rare event happened but I'd like to prevent it from happening in the future.
    I offer free shipping for orders $100 and over. I received an order for $94 which should have had a $6 shipping charge but it didn't. The reason why is because the sales tax was $6.23 putting the order over $100 and the customer received free shipping.
    I let it go because I don't like to appear petty but I'd like to know if there's a way to leave out sales tax when calculating shipping.

    Thanks
    Carol

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,401
    Plugin Contributions
    87

    Default Re: How not to include sales tax when calculating shipping

    Shipping should be un-taxed if there's no "Tax Class" associated with a specific shipping module. You need to check each of your enabled shipping modules (admin's Modules :: Shipping) to make sure that each is un-taxed.

  3. #3
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,107
    Plugin Contributions
    11

    Default Re: How not to include sales tax when calculating shipping

    Perhaps one of the options mentioned in the docs will help with the problem. https://docs.zen-cart.com/user/shipping/free_shipping/

    I'm not able to test the Order Total Settings for Shipping in the Modules but, checking all the settings might find something.

    I don't remember seeing a setting where you can base the Free shipping on the sub-total which would be the ideal for your situation.

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,623
    Plugin Contributions
    123

    Default Re: How not to include sales tax when calculating shipping

    I assume you're using Free Shipping for over $100 by configuring Admin > Modules > Order Total > Shipping (free shipping over).

    If so, that module is coded using this check:

    if ($pass && ($order->info['total'] - $order->info['shipping_cost']) >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) {

    You could change it to use the subtotal instead of the total, or subtract the tax out, as you see fit.

    The relevant variables are $order->info['subtotal'] and $order->info['tax'].
    That Software Guy. My Store: Zen Cart Modifications
    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
    Feb 2015
    Location
    USA
    Posts
    157
    Plugin Contributions
    0

    Default Re: How not to include sales tax when calculating shipping

    Quote Originally Posted by swguy View Post
    I assume you're using Free Shipping for over $100 by configuring Admin > Modules > Order Total > Shipping (free shipping over).

    If so, that module is coded using this check:

    if ($pass && ($order->info['total'] - $order->info['shipping_cost']) >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) {

    You could change it to use the subtotal instead of the total, or subtract the tax out, as you see fit.

    The relevant variables are $order->info['subtotal'] and $order->info['tax'].
    I will try this, thanks.

    Carol

 

 

Similar Threads

  1. shipping tax not calculating correctly
    By theerodglove75 in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 0
    Last Post: 2 Jul 2010, 09:32 PM
  2. Sales Tax showing, but not calculating. Please HELP!
    By swanriver in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 10
    Last Post: 12 Dec 2009, 10:50 PM
  3. Not calculating sales tax during checkout
    By GraniteMan44 in forum General Questions
    Replies: 3
    Last Post: 2 Mar 2008, 08:36 AM
  4. Sales tax not calculating properly
    By NetEssentials in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 23 Mar 2007, 06:02 PM
  5. Tax is not calculating properly with shipping
    By jenaustin in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 2
    Last Post: 31 Aug 2006, 01:30 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