I'm hoping someone can help with this. A site I built is using Ubercart 7x-3.8 and Ubercart Discounts 7x-2.0 Alpha3.

I've set it up so that the customer gets free shipping for orders over $80, but if they use a coupon to bring the total for the order below $80 they're still getting free shipping - but they shouldn't be.

My shipping quotes are flat rate and the rules are based on a data comparison of the order:order-total. Unfortunately it's not working - it seems to be calculating the shipping from either the sub-total or the total before the coupon is applied.

Any ideas? This is a live site so I need to fix it as soon as possible. I've searched the web but I can't find an issue that matches. I have no idea if this is an issue with Ubercart it's self or if it's a problem with the shipping or the discount module.

Comments

cmgdesign created an issue. See original summary.

TR’s picture

Priority: Major » Normal
Status: Active » Closed (duplicate)

See #1931076: Data comparison in Rules - order subtotal, test that patch, and report your results in that thread.

cmgdesign’s picture

So apparently I needed a good nights sleep. I woke up in the middle of the night with the realization that I WANT it to calculate shipping on the total WITHOUT the coupon because we still have to incur the cost of shipping all the items! (DUH!)

My solution - exclude free shipping from carts that contain a coupon and create a new free shipping for carts including coupons with a higher $ amount. For example instead of being $80 for free shipping it would be $100 for free shipping with carts including a coupon. It's not a perfect solution, but it's better then screwing up all the other shipping settings.

TR’s picture

Even if you're not going to use it, it would be greatly appreciated if you could take a few minutes to test #1931076: Data comparison in Rules - order subtotal and let us know in that issue whether it works as expected.