Zen Cart Logo
Forums / Discounts/Coupons, Gift Certificates, Newsletters, Ads / Can Free Shipping be removed if coupon lowers total below threshold?

Can Free Shipping be removed if coupon lowers total below threshold?

Views: 3,222

Results 1 to 5 of 5
6 May 2023, 7:20 PM
#1
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
731
Plugin Contributions:
0

Can Free Shipping be removed if coupon lowers total below threshold?

Not sure if this has been asked before. Here's the situation.

We offer free shipping on orders totaling $49.95 or more.

So if you add a $49.95 item into your shopping cart and proceed to the checkout page, you'll have FREE SHIPPING available as a shipping option.

But now, let's say you use a 10% discount code to lower the price. The price will lower by 10% (bringing you UNDER the Free Shipping threshold), but you still have the option to ship it with Free Shipping.

Question - What configuration must I look at in order to have the checkout page remove Free Shipping if the price is lowered by a discount code? Is this even possible?

I did find a similar thread here (https://www.zen-cart.com/showthread.php?227600-Disable-ot_coupon-when-freeoptions) but that seems to disallow any coupon to be used when free shipping is selected. However, in my case, I don't mind if a customer has both free shipping AND a coupon, as long as the subtotal (after coupon) is still above the free shipping threshold of $49.95.

I only want to disable free shipping if the subtotal drops below $49.95 due to a coupon being applied.

I am using BOOTSTRAP template and ZC 1.5.8a.

8 May 2023, 5:28 PM
#2
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
731
Plugin Contributions:
0

Re: Can Free Shipping be removed if coupon lowers total below threshold?

Well, it looks like this is just a limitation in the core installation. Closest thread I found dealing with this is here, and the solution appears to be something that would need to be coded into the install: https://www.zen-cart.com/showthread.php?101047-Recalculate-shipping-after-discount-coupon-applied/

I may try to fiddle with it myself but I was hoping there was already a built-in way for the cart to recalculate shipping options based on the new refreshed total after a coupon is applied.

8 May 2023, 10:13 PM
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Can Free Shipping be removed if coupon lowers total below threshold?

Did you try changing the sort-order of ot_coupon to be less than that of ot_shipping? That way, the shipping charge would be determined *after *the coupon's calculations.

9 May 2023, 10:00 AM
#4
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

Re: Can Free Shipping be removed if coupon lowers total below threshold?

Closest thread I found dealing with this is here, and the solution appears to be something that would need to be coded into the install ...

Still same.

2 Jun 2023, 3:20 PM
#5
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,278
Plugin Contributions:
37

Re: Can Free Shipping be removed if coupon lowers total below threshold?

lat9:

Did you try changing the sort-order of ot_coupon to be less than that of ot_shipping? That way, the shipping charge would be determined *after *the coupon's calculations.

I was curious about this... Not sure if it works without, but the sort for OT doesn't work in OPC checkout.

~Melanie