Addons allow easy modification, customization, and enhancement of a design tool. Instead of changing the core programming of design tool, you can add functionality with addon.
Step by step to create addon of T-Shirt eCommerce
Addons Files:
- tshirtecommerce/addons/css/your-file.css
1
|
//Your CSS |
- tshirtecommerce/addons/js/your-file.js
You can use all hooks in this file.
1
2
3
4
|
// url use with ajax call to file tshirtecommerce/addons/ajax/method.php var url = siteURL + "ajax.php?type=method¶ms=string" ; //Your code |
- tshirtecommerce/addons/language/language.ini
1
|
my_addon_title="My Addon" |
- tshirtecommerce/addons/ajax/method.php
1
2
3
4
5
6
7
8
9
|
// read language $addons = $GLOBALS [ 'addons' ]; echo $addon ->__( 'my_addon_title' ); // call settings $settings = $GLOBALS [ 'settings' ]; // call product $product = $GLOBALS [ 'product' ]; |
Note: Please look more files in folder: tshirtecommerce/addons