Create custom functions
Sometimes, you want to create your own functions for use everywhere in S-Cart,
The easiest way is to create it in app/Library/Helpers/myfunction.php
Note:
The easiest way is to create it in app/Library/Helpers/myfunction.php
Note:
- If the folder and file "myfunction.php" are not available, you can create more yourself
- You can create any .php file in the Helpers folder, which will be loaded before the S-Cart system starts up.
Related topics
- Backup & Restore
- S-Cart command line
- Configure data validation
- Customize your router
- Customize controller
- Functions helper of S-Cart
- How to customize home page
- Customize admin dashboard page
- Customize helper functions
- 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