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. |
Re: module
Me too. The ones I found on line are for ver 4.x and throw a version error.
|
Re: module
Just look at the modules included with XC5 installation pack
|
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. |
Re: module
In majority of cases, you do not write the SQL code at all, you just write PHP code and work with models.
|
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 |
Re: module
Please do not use XC as developer ID, because it has been reserved for default modules.
|
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. :? |
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? |
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.
|
All times are GMT -8. The time now is 03:04 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.