Updating : best practices

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
hello from France,

Nop 3.90

After modifying somes cshtml files, adding some others, and custom some personnal scripts and includes, i thaught that if i would update for a more recent version, i would have probably lost all our global modicications. So could you advise me your best practices for a good code customization ?

Thanks

Michel
6 years ago
MicNop wrote:
hello from France,

Nop 3.90

After modifying somes cshtml files, adding some others, and custom some personnal scripts and includes, i thaught that if i would update for a more recent version, i would have probably lost all our global modicications. So could you advise me your best practices for a good code customization ?

Thanks

Michel


You should use the theme concept. Keep the same view folder structure and your new theme view will be prioritized.

Something like this:
/themes/mytheme/views/home/index.cshtml.

If you need to overwrite more core functionallity you need to create plugins. You can also write custom services and override existing methods.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.