Customize helper functions

Since S-Cart 6.7, we support developers to replace the contents of S-Cart helper functions without changing the core.
Step 1:
- Add the name of the function you want to replace into the array "s-cart/config/helper_except.php"
If you don't have this file, you can create it yourself: https://github.com/s-cart/s-cart/blob/master/config/helper_except.php
Ex:

Step 2:
Rewrite the helper functions as you like in the file "s-cart/app/Library/Helpers/myfunction.php"


Done :)

Related topics

Latest Document