Jump to content

Free Shipping / 10% Off Voucher Configuration Error?


Recommended Posts

I have searched for the past 2.5 days for an answer to no avail. Any help would be immensely appreciated!

 

So I am offering free shipping on anything over $100 (of course this is setup via BO -> shipping -> handling). I also have floating out there a 10% off voucher for certain clients. Issue is, when a client orders a product that comes in at lets say $105 and then uses the 10% off voucher, they lose the free shipping option because the product now comes in below $100 requirement for free shipping. I'd like them to be able to have free shipping base on the total $$$ amount of the product before any offered discounts/vouchers.

 

I am actually going to offer a store wide sale soon and this also would be effected.

 

Thanks in advance! I appreciate anyone's time and effort!

 

JTLS

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

JTLS, what version of PS are you using?

 

I might have the solution. In Cart.php you can change the way free shipping is calculated: based on total amount cart (vouchers included) or based on total amount products.

 

in classes/Cart.php change

$order_total = $this->getOrderTotal(false, Cart::ONLY_PRODUCTS_WITHOUT_SHIPPING);

in to

$order_total = $this->getOrderTotal(true, Cart::ONLY_PRODUCTS_WITHOUT_SHIPPING);

 

Hope this helps.

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...