Post by diego » Wed Feb 01, 2012 5:01 am

Hi all,
I'm new to OpenCart (v. 1.5) and I was looking for some documentation/tutorials that explain how to create an Extension. So far I only found some brief introduction to the API and something about the MVC structure, but they are insufficient. Some Users suggested me to "figure things out" by downloading other modules, but I can't work that way, as the result would be a mess of guesswork (been there, done that, it's a bad approach).

Put simply, I'd need some official documentation that explains how things work and how to connect the various parts together. Any help is appreciated, thanks.

My personal blog - My blog about Software Development - My profile on StackOverflow


Newbie

Posts

Joined
Wed Feb 01, 2012 4:52 am
Location - Ireland

Post by Qphoria » Wed Feb 01, 2012 5:55 am

This is probably the most official for now:
Payment: http://forum.opencart.com/viewtopic.php?f=136&t=30653
Shipping: http://forum.opencart.com/viewtopic.php?f=142&t=30226
Module: http://forum.opencart.com/viewtopic.php?f=22&t=6696

It's all file-based existence that triggers the initialization of standalone files. Which makes them very modular. Then it is just having all the files in the right place. Basically a Model, a View, and a Controller for both the admin and the catalog sides, and then language files for each.

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by diego » Thu Feb 02, 2012 3:04 am

Ok for the structure, but then what? What should I do to initialize things, to "hook" into things, to alter things, to add/remove/change tables, data, structures, to run queries, and so on? How to I produce an output? How do I place it somewhere? How do I restrict the viewing to certain roles? How do I log what happens?

There are many more open questions that I won't list here as it would get too long, but the issue is that "copying from someone else" simply makes things too hard. I can't just download module after module until I find one that, maybe, does what I want and, hopefully, does it the way it's supposed to do. Even if it works, it would be working "by coincidence", not because I know what I'm doing.

My personal blog - My blog about Software Development - My profile on StackOverflow


Newbie

Posts

Joined
Wed Feb 01, 2012 4:52 am
Location - Ireland

Post by justinv » Mon Aug 13, 2012 3:17 pm

We have a DIY module builder module available for free. It will help get you started on designing your own module.

Documentation: OpenCart User Guide
Mods: Total Import PRO | CSV Import PRO | Ecom Tracking | Any Feed | Autosuggest | OpenCart CDN
Image


Active Member

Posts

Joined
Tue Oct 12, 2010 1:24 pm
Who is online

Users browsing this forum: No registered users and 5 guests