Magento free shipping for a total amount

Using standard shipping rates in magento or registration rates in webshopapps, I found that free shipping is calculated on subtotal without tax instead of the total amount (total amount + tax). Of course, I would like to set free shipping in the gran total function. I found that you can crack the kernel code:

Application / Code / Kernel /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 kernel changes.

+4
source share
2 answers

I set up free shipping under "Promotions"> "Shopping Cart Rules" and there it works for me.

+2
source

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

 || ($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 kernel changes.

0
source

All Articles