Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Tip: How to program a cs-cart 1.35sp3 addon Rate Topic   - - - - -

 
  • rcaubin
  • Junior Member
  • Members
  • Join Date: 11-Jul 08
  • 10 posts

Posted 07 August 2008 - 06:04 AM #1

Hi everyone,

I'm in the middle of an extremely large project with multiple addons being developed to extend the administration and customer sides of cs-cart.

Because staying withing budget is always a priority, I took it upon myself to learn how to create an addon that is accessible in the admin settings section and that is designed to extend existing cs-cart functionality, such as the user authentication system, the categories and product systems.

Some of my discoveries include...

* How the "had to look to find it" /admin.php?target=settings_dev file is used to add new addons and extend cs-cart with new and additional settings that are definable within the administration web interface.

* 75 existing cs-cart module areas that allow ANY addon to plug into it. This is how the Listmania addon shows up everywhere (Categories, Products, Pages, etc...)

* How an addon can register itself to be included in any of the 75 module addon areas mentioned above by creating only 1 php file.

* Core cs-cart functionality that handle data manipulation between the user interface, the template system, the shopping cart programing logic, the database and finally the user (admin, customer, mail and partner)

* 2 files that are automatically loaded with any active addon that allows you to first define the configuration data that your addon program needs to function properly and the necessary php functions that interact with the cs-cart system and your addon.

* The necessary folder structure that is needed for your addon code and skin/template files.

* And a few other intersting discoveries with the template system for addons as well.

I'm not sure how long this current cs-cart version will be in place, but I'll try post a follow up to this post shortly on the step-by-step process I'll be using to create addons for cs-cart 1.35sp3.

Let me know if you're interested in that.

 
  • baballuci
  • Senior Member
  • Members
  • Join Date: 02-Mar 06
  • 969 posts

Posted 10 August 2008 - 12:20 PM #2

Wow, all this time i've been using CS and have never found that page. I'd be very interested as i'm sure alot of others would be for step by step module creation. Thanks
Charlie

 
  • snorocket
  • Forum Janitor
  • Members
  • Join Date: 15-Mar 06
  • 2519 posts

Posted 10 August 2008 - 11:40 PM #3

the module development console has existed for a very long time, at least since 1.3.2 from my memory, it's not highly talked about because it can completely destroy your cart if used incorrectly, in addition it's a little buggy, be extremely careful using the console and never use it on a live site, always backup before performing any action with the console...
SNOROCKET.COM, Now Accepting PRE-ORDERS:
Customer Service (Helpdesk) Addon for CS-Cart v4.3.1
Quote and Invoicing Addon for CS-Cart v4.3.1

 
  • Palmtop
  • Senior Member
  • Members
  • Join Date: 15-Feb 07
  • 310 posts

Posted 30 September 2008 - 12:05 AM #4

Any news about these informations, please?
Regards