user2270248
user2270248

Reputation: 163

Magento free shipping calculated on grand total

Using standard magento shipping table rates or webshopapps matrix rates, i found that the free shipping is calculated on subtotal without tax instead of gran total (subtotal + tax). For sure, i would like to set free shipping in function of gran total. I found that it is possibile hacking core code:

app/code/core/Mage/Shipping/Model/Carrier/Freeshipping.php

Changed line 60:

|| ($request->getPackageValueWithDiscount() >= $this->getConfigData(’free_shipping_subtotal’))

to

|| ($request->getBaseSubtotalInclTax() >= $this->getConfigData(’free_shipping_subtotal’))

Is this really the only way? Naturally, if so, i would create a "copy" of this class to override this method, saving it from future core changes.

Upvotes: 4

Views: 6509

Answers (2)

Ope Yemi
Ope Yemi

Reputation: 1

Changed line 60: FROM instead of TO in the previous post

|| ($request->getPackageValueWithDiscount() >= $this->getConfigData(’free_shipping_subtotal’))

(FROM)

|| ($request->getBaseSubtotalInclTax() >= $this->getConfigData(’free_shipping_subtotal’))

Is this really the only way? Naturally, if so, i would create a "copy" of this class to override this method, saving it from future core changes.

Upvotes: 0

SPRBRN
SPRBRN

Reputation: 2462

I've set free shipping in Promotions > Shopping Cart Price Rules, and there it works for me.

Upvotes: 2

Related Questions