I have enabled free-shipping from System->Configration->Shipping Methods, and I set the Minimum Order Amount to 50 but it doesn't work
Also I wonder why this condition if($request->getFreeShipping())
always return false
I actually had this problem myself and stumbled on this question. For me it was because the cart subtotal was not being loaded properly in the Freeshipping.php file which is located in the below path.
Path to File:
/app/code/core/Mage/Shipping/Model/Carrier/Freeshipping.php
Now, Copy this file:
/app/code/core/Mage/Shipping/Model/Carrier/Freeshipping.php
to this file location
/app/code/local/Mage/Shipping/Model/Carrier/Freeshipping.php
Find the line that has this
if (($request->getFreeShipping())
|| ($request->getBaseSubtotalInclTax() >= $this->getConfigData('free_shipping_subtotal'))
And replace it with this
$totals = Mage::getSingleton('checkout/cart')->getQuote()->getTotals();
$subtotal = $totals["subtotal"]->getValue();
if (($request->getFreeShipping())
|| ($subtotal >= $this->getConfigData('free_shipping_subtotal'))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With