Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Code Matters / Bug Reports / Free shipping on orders of $100 or more (pretax)

Free shipping on orders of $100 or more (pretax)

Locked

Started by drex on 19 May 2009, 2:37 PM · Views: 2,099

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
19 May 2009, 2:37 PM
#1
drex avatar

drex

New Zenner

Join Date:
Jul 2007
Posts:
10
Plugin Contributions:
0

Post #1 by drex

This is the issue:

Free shipping on orders of $100 or more (pretax) in the United States.

Florida residents (where the store is based) are meeting the $100 by only buying $90ish of merchandise, and then when the tax is calculated, it pushes them over $100, costing us money (as now we must pay Tax and Shipping as the $90ish order is now over $100 because of the tax), instead of charging the customer for the shipping.

Does anyone know where exactly to adjust the shipping module (using free shipping options) to calculate this PRE-TAX (or on total merchandise) before the tax is added on?

Otherwise, the merchant loses about $5 per order on orders in that range.

Thanks!

19 May 2009, 3:56 PM
#2
tshooters avatar

tshooters

Totally Zenned

Join Date:
Dec 2005
Posts:
1,037
Plugin Contributions:
2

Post #2 by tshooters

Check in Admin/Modules/Order Total/Shipping (ot_shipping) that you also have Free Shipping for Orders Over set to 100.

19 May 2009, 4:06 PM
#3
tshooters avatar

tshooters

Totally Zenned

Join Date:
Dec 2005
Posts:
1,037
Plugin Contributions:
2

Post #3 by tshooters

Also, check your sort orders there. Tax should come after sub-total. Having it before sub-total allows that to happen.

19 May 2009, 4:35 PM
#4
tshooters avatar

tshooters

Totally Zenned

Join Date:
Dec 2005
Posts:
1,037
Plugin Contributions:
2

Post #4 by tshooters

Scratch all the above. :dontgetit

19 May 2009, 10:12 PM
#5
drex avatar

drex

New Zenner

Join Date:
Jul 2007
Posts:
10
Plugin Contributions:
0

Post #5 by drex

no, those are set correctly.

subtotal

then shipping

then tax

100

200

300

:(

21 May 2009, 3:58 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #6 by ajeh

See if this works for you ...

Edit the file:
/includes/modules/order_total/ot_shipping.php

and change the code around line 35 to:

//        if ( ($pass == true) && ( ($order->info['total'] - $order->info['shipping_cost']) >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) {
        global $cart;
        if ( ($pass == true) && ( ($_SESSION['cart']->show_total()) >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) {

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

21 May 2009, 10:45 PM
#7
drex avatar

drex

New Zenner

Join Date:
Jul 2007
Posts:
10
Plugin Contributions:
0

Post #7 by drex

perfect. thank you so very much!

(should this be submitted as a permanent fix? seems to be a software/calculation error?)?

22 May 2009, 1:15 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #8 by ajeh

Something similar to this is being worked on ... thanks ... :smile:

Moving this to the bug report ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!