| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
#1
|
|||||||
|
|||||||
module
where can i fine an open source module so i can see how an insert/update/delete is made (i read the documentation) , i wanna understand the xcart 5 module functionality.
Thanks.
__________________
xcart 5 |
|||||||
#2
|
|||||||
|
|||||||
Re: module
Me too. The ones I found on line are for ver 4.x and throw a version error.
__________________
Newb X-Cart 5 user trying out X-cart ver 5.1.3 free, local system is running Linux, web host server is running Debian, mySQL 5.5.32, Perl 5.8.8, PHP 5.3, shared hosting. |
|||||||
#4
|
|||||||||
|
|||||||||
Re: module
Hi guys!
Could you please let me know what data you want to insert or update? I can give you real examples of working code. Tony.
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
|
#5
|
|||||||||
|
|||||||||
Re: module
In majority of cases, you do not write the SQL code at all, you just write PHP code and work with models.
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
#6
|
|||||||
|
|||||||
Re: module
I created a simple module to put text in the side bar. In order to do this, you need to create Main.php and somename.tpl.
Examples of my files are here: (deleted) Paths in the X-cart installation are root/classes/XLite/Module/XC/yourmodulename/main.php and root/skins/default/en/modules/XC/yourmodulename/somename.tpl Icon.png is in the same directory as main.php but it isn't showing up in the installed modules list. This will give you a module that will place text or links etc. in the sidebar. I want to figure out how to make it so that I can chose the order that the module appears in the sidebar. Hope this helps. EDIT: I created a module that can add things to your sidebar. It is at http://fileshare.ninja/142997rh/sidebar-links-module.zip
__________________
Newb X-Cart 5 user trying out X-cart ver 5.1.3 free, local system is running Linux, web host server is running Debian, mySQL 5.5.32, Perl 5.8.8, PHP 5.3, shared hosting. |
|||||||
|
#7
|
|||||||||
|
|||||||||
Re: module
Please do not use XC as developer ID, because it has been reserved for default modules.
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
#8
|
|||||||
|
|||||||
Re: module
Quote:
Oh? I didn't realize that. When I attempted to create a module before, the only way I could get it to appear in the installed module list in admin was to place it in XC. I'll play with it some more.
__________________
Newb X-Cart 5 user trying out X-cart ver 5.1.3 free, local system is running Linux, web host server is running Debian, mySQL 5.5.32, Perl 5.8.8, PHP 5.3, shared hosting. |
|||||||
#9
|
|||||||
|
|||||||
Re: module
My problem with my previous attempts to create a module appear to be due to me using an invalid char in the dir name or the file name. That's the "-" char. When I use my own developer ID, it now works.
Are there any other idiosyncrasies that we should know about?
__________________
Newb X-Cart 5 user trying out X-cart ver 5.1.3 free, local system is running Linux, web host server is running Debian, mySQL 5.5.32, Perl 5.8.8, PHP 5.3, shared hosting. |
|||||||
#10
|
|||||||||
|
|||||||||
Re: module
Your Developer ID and Module ID go as a part of the PHP class namespace. So you can use any characters allowed for PHP namespaces. The "-" is not one of these.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
|
|
|||
X-Cart forums © 2001-2020
|