i am trying to override special price start/end date time. i have done in view.phtml, but in list.phtml it is not applied when i set special price end date in admin panel. What i did wrong.

Can anyone help me in this case.

Thanks in advance.


  • i have overridden list.phtml, price.phtml and view.phtml in templates

  • overridden Price.php in Mage->Catalog->Model->Product->Type

Now the changes i made are applied in view.phtml, but in list.phtml it is not appiled.

And i want to override the special price end date.

  • can you add more details by editing question. what you have changed and what you want to achieve.
    – Charlie
    May 26, 2016 at 7:01
  • Sure Charlie... May 26, 2016 at 7:04
  • there is file called price .phtml, look into that, it may solve your problem
    – Charlie
    May 26, 2016 at 7:11
  • Yes i have checked with that but it didnt help me May 26, 2016 at 7:11
  • where i can edit the special price end date in code(for list.phtml) May 26, 2016 at 9:49

1 Answer 1


I have fixed this issue... to override special price start and end date, we have to override Product.php in Mage->Catalog->Model

Here find the getFinalPrice($qty=null) function and set from date and to date


$toDate='your date';

$fromDate='your date';

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.