| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Add New Module through Admin back-end | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Add New Module through Admin back-end
I've been creating a few custom features as modules and have quite a few more on my ToDo list, so I wrote this to make adding modules to the database a bit easier. This will add an "Add Module" dialog below the modules list in the admin back-end.
In admin/modules.php, find: Code:
And replace it with the following: Code:
Then add the following at the bottom of skin1/admin/modules.tpl: Code:
Then add the following labels: lbl_add_module lbl_module_name lbl_module_descr lbl_module_active I have this implemented in 4.0.1, but it should work with earlier versions. Just don't forget to backup your files first Hope someone finds this useful...
__________________
X-Cart 4.0.5 MySQL: 3.23.58 PHP 4.3.2 |
|||||||
#2
|
|||||||
|
|||||||
Cool post but just two typos.
1) lbl_modue_descr should be lbl_module_descr 2) if (empy($existing_mod)) { should be if (empty($existing_mod)) {
__________________
No longer using Xcart, was good while it lasted. |
|||||||
#3
|
|||||||
|
|||||||
Oops, thanks for the corrections. Fixed the original post :>
__________________
X-Cart 4.0.5 MySQL: 3.23.58 PHP 4.3.2 |
|||||||
#4
|
|||||||||
|
|||||||||
Nice mod. I'm sure it will now appear in x-cart 4.1
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|