OpenCart resources [closed]
I'm trying to develop an understanding of how to build things using OpenCart, but their documentation seem to bit on the conservative side. Do the stackoverflow community have suggestions for reading material.
This question is in spirit related to:
- Resources on wordpress theme-development
- Good resources for Wordpress?
First you need to get familiar with the concept of MVC. Then take a look at OpenCart framework explanation to have a better understanding of MVC implementation in OpenCart.
The rest shouldn't be that hard, just go through some examples and you'll get the idea. This example is really good to get you started. It's written for training purpose and all files are well commented ! In order to download the example you need to submit an order and then download the attachment from the "Downloads" section. You can also find more tutorials at this link ...
You could buy their beginner's guide Opencart Beginner's guide
If its only about changing the theme of OpenCart, then for this, working experience with any template engine like Smarty can prove to be beneficial.
But if its about extending and modifying the functionality, then knowledge of MVC as a whole would definitely be more beneficial.
If you don't want to invest time in first understanding MVC, then simply dive into the code straight away and try understanding how files are being loaded (die(), exit() the best means for this).
Note that be it MVC or any other pattern, open-cart or any other tool/solution, the most rewarding way of having a good hold on it is to focus upon understanding the bootstrap process or file loading mechanism and this can be best achieved by going through code logically and understanding its flow (again by using die or exit).
Hope this helps.
I'd start by learning the MVC development framework. If you understand how an MVC framework is built, then you're already on your way to understanding Opencart. Codeigniter is a fairly simple MVC framework to learn off of and there is lots of resources around to help you out.
I've been wrote something about "good resource for Opencart" on Opencart forum. See developing refference section.
For changing or adding functionality, you should consider using vqmod, it allows you to change things without modifying the opencart source code directly, which is ideal if you do upgrades or want to port your changes to other opencart installs.
It is also nice to share them with the community if they are particularly helpful.
精彩评论