Nice post. I learn something more challenging on different blogs everyday. It will always be stimulating to read content from other writers and practice a little something from their store. I’d prefer to use some with the content on my blog whether you don’t mind. Natually I’ll give you a link on your web blog. Thanks for sharing. Estudiar ingles en el extranjero
This answer is a little late, but just in case anyone is looking for a non-destructive solution, here’s how you can disable the coupon entry form ONLY when there are no active coupons. When you add a new “Shopping Cart Sales Rule” and make it active, the form will be displayed.
Open the template file that is responsible for the coupon display form:
Add the following PHP to the top of the file, below the Magento license info, before any HTML is output.
<?php // if there are no active "Shopping Cart Price rules" // then don't need to display the coupon entry form $activeSalesRules = Mage::getModel('salesrule/rule') ->getCollection() ->addFieldToSelect('rule_id') ->addFieldToFilter('is_active', 1) ->getData();
I know, I know.. it’s late, but for anyone browsing the forums; no need to dive into the code to fix this anymore! We offer a FREE extension:
The free “Clean Carts” extension allows you to individually disable the shipping estimate and coupon code boxes in your shopping cart. Whenever you think these features need to be shown again, simply enable either or both.
So, I just pulled the entire coupon.phtml file out of my directory and it seems to work just fine on IE 9, Safari and Firefox. No more discount code box popping up in my checkout cart. Just my shipping estimate calculator like I want.
My directory was… app / design / frontend / base / default / template / checkout / cart / coupon.phtml
I’m using Magento 18.104.22.168 and have a different custom theme.
Anything I should be worried about by doing this method? Doesn’t look like it has broken anything ( or will break anything).
I have sponsored athletes that get a code for a % discount off of product.
But i want to diable there code when i am adding a discount for just reg customers.
For example if i am offering 25% off o winter gear . I dont want our athlete to put in his code and get another  off making it 30% off of the product now.
Does this make sense?