I added one discount method using Shopping Cart Price Rules. It is active for 13th June 2014 to 25th June 2014.

But now I have to disable the price rule as per the below.

That mean

  1. If the order has placed on 15th of June and Delivery falls on 28th , then there is no discount.
  2. If the order has paced on 15th of June and Delivery falls before 26th, then discount is there.

How to do this with admin panel? Or am I need to do any coding?


Yes, you will need to do this with manual coding.

This is not a feature in default Magento.

The price rules take effect when the order is placed and if they are in the valid date range, the price rule will be applied.

  • Btw it also seems weird for the customer that he does not get the discount if your delivery is delayed?! – mpaepper Jun 13 '14 at 9:05
  • Can you point me to the file. Which I have to implement the code – yeshansachithak Jun 13 '14 at 10:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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