I am trying set shipping method based on subtotal from cart page. If subtotal is less than certain amount then customer will have Flat rate as shipping method else it will be free shipping.
Magento 1.9 Shipping Method – Setting from Observer Based on Subtotal
free-shippingmagento-1.9shippingshipping-methods
Best Answer
One approach can be filtering of shipping methods based on sub-total. This way you can activate or deactivate required shipping methods.
For filtering shipping methods:
1> Rewrite the shipping model class:
Mage_Shipping_Model_Shipping
File: app/code/local/MagePsycho/Shipmentfilter/etc/config.xml
Code:
2> Override the method:
collectCarrierRates()
File: app/code/local/MagePsycho/Shipmentfilter/Model/Shipping.php
Code: