Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How can I remove the free shipping option in the checkout if a coupon code has been used? 
 
acp63
Member
 
Total Posts:  73
Joined:  2009-03-12
 

How can I remove the free shipping option in the checkout if a coupon code has been used?  The free shipping option should only appear with orders over $70.00 and no coupon code has been used.  Currently the free shipping option shows up with all orders.

cheers,

acp63

 
Magento Community Magento Community
Magento Community
Magento Community
 
MathieuF
Sr. Member
 
Total Posts:  141
Joined:  2009-03-12
Montreal, Canada
 

Copy your app/code/core/Mage/Shipping/Model/Carrier/Freeshipping.php to app/code/local/Mage/Shipping/Model/Carrier/Freeshipping.php and change line 61.

From:

|| ($packageValue >= $this->getConfigData('free_shipping_subtotal'));

to:

|| ($packageValue >= $this->getConfigData('free_shipping_subtotal') && ($packageValue == $request->getPackageValue());

I haven’t tested it, but I think it should work.

Make sure you set the minimum amount in the module’s config.

 
Magento Community Magento Community
Magento Community
Magento Community
 
acp63
Member
 
Total Posts:  73
Joined:  2009-03-12
 

This did not work it causes the shopping cart to malfunction completely

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top