Search code examples
prestashopcontrollersprestashop-1.5prestashop-1.6custom-pages

Are new added controllers to Prestashop controllers folder deleted after update?


I feel the answer is no, but i am not sure yet because I am a newbie in Prestashop.

Situation:

I need to create a custom page in Prestashop without using CMS (due to its limitations). I found here in SO that the one manner is :Create custom page in Prestashop 1.5.3

I just want before implementing this to be sure that the future updates don't break the behaviour. Thank you very much.


Solution

  • You have to add the Controller in the override, not the core. Then it will not get updated (like the core, which just gets replaced by the update)

    Core controller are located in:

    ../Controllers/*
    

    These will be overwritten when you update

    Overrides / Extension Controllers can be put in

    ../override/controllers/*
    

    and will not be touched by an update!