Simple addon, how to?

Looking for a guide or explanation how to make a simple addon, a very simple, any kind.

[URL]http://docs.cs-cart.com/[/URL]

[quote name=‘TexasGuy’]Looking for a guide or explanation how to make a simple addon, a very simple, any kind.[/QUOTE]



Alll depends on what you want to do. An ‘addon’ is an abstraction that becomes part of a variety of calling sequences in cs-cart depending on what exists for the addon.



An addon can register hooks to be called when hooks are encountered in php code. You can provide schema definitions to add menu items and links to admin pages and other things. You can import/export data by supplying the appropriate schemas and functions. You can provide specific controller commands which can be links from template pages or other areas, do some processing and then redirect to an entirely different area of the cart.



And then there’s the whole template area (which is what people are most familiar with) as it relates to template hooks.



So unfortunately, the answer to your question is “it depends”.



For a simple example you can look at the free local configuration addon I developed about a year or so ago that was used before cs-cart came out with their empty my_changes addon. You can get a copy here: [url]http://www.ez-ms.com/products/local-addon.html[/url]. The SEO extensions provide more detail on the addon controller and php hooks, etc…