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 :)
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
- Discount code (coupon) 2023-05-14
- Upgrade guide 2023-03-19
- Data relations in S-Cart 2023-02-05
- Custom data fields in S-Cart 2023-02-05
- Upgrade guide 2022-10-05