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
- Backup & Restore
- S-Cart command line
- Create custom functions
- Configure data validation
- Customize your router
- Customize controller
- Functions helper of S-Cart
- How to customize home page
- Customize admin dashboard page
- Disable ecommerce router
- Convert S-Cart into a news website
- Customize data fields in S-Cart
- Data relations in S-Cart
- Customize search page
Latest Document
- Upgrade guide 2024-03-24
- Customize search page 2023-08-02
- Discount code (coupon) 2023-05-14
- Upgrade guide 2023-11-23
- Data relations in S-Cart 2023-02-05