I am having a hard time trying to create a coupon code that will set the shipping rate to $10.95 if the cart subtotal is $150 while using USPS and FedEx live rates.

I can see that there is an option to apply the discount to the shipping cost, but since it is a variable rate, there is no fixed amount or percent that I can specify that will bring the shipping cost to exactly $10.95.

Is there any way to create this shipping rule?

I am using Magento CE 1.9. Thanks for any help!

1 Answer 1


You can rewrite class Mage_Shipping_Model_Shipping and apply your logic in the method collectRates like

    $oldRates = $result->getAllRates();

    foreach ($oldRates as $rate){

There are also some extensions at the magento connect that can create Shipping Rules by special condition or coupon.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.