Describing files and folder and OpenCart Framework

Hi everyone, Namaste. Word used in our Country Nepal to greet someone. Me Rupak Nepali. In our second video we install OpenCart and is now up and running at our custom URL webocreation.dev. Today in our third video I am going to describe files and folders of OpenCart framework and some flow of code.

First things we do is look through the files and folders structure.

FolderStructureOfOpencart

Frontend presentation style are handled in catalog/ folder.

Admin section files and folders are in admin/ folder.

We will discuss in detail about these folders when we will start making hello world module.

The image/ folder contains cache/, catalog/ and payment/ folder with no_image.png and placeholder.png files. Placeholder and no image are used if there are no images found. For example let’s go to category page.

You see this is the placeholder image.

no-image placeholder opencart

Catalog/ folder inside the image/ folder contains main images which we upload either from backend or frontend. Like category image, product image, images inserted from the textarea etc.

Cache/ folder inside the image/ folder contains resized images of main images. For example in demo/ demo folder we have iPhone6.jpg which is main image. But while showing in the category page or in the product page its size are resized. All these images are stored in cache folder. We can see at cache/ folder demo, then banners see the name iPhone6-1140*380.jpg which is resized image for the banner at the home page.

Like this way images are handled in image/ folder.

Install/ folder contains opencart.sql file which create tables on specified database and insert demo data. Other files have codes which facilitates to install OpenCart.

System/ folder is the base where OpenCart framework is defined. It contains config/, engine/, helper/, library/ and storage/ folders. Among these folder we only focus on library/ folder which contains OpenCart library global methods. Like for example in config.php Class we see get method, set method, has method and load method, we can access it in controller and model of admin and catalog. We will show some example in upcoming videos about it.

Other is config.php file where constant are defined and is different as per installation.

Last is index.php where we can find what version of OpenCart are we using and start of our application.

So our third video is completed, hope you liked it. As always please don’t forget to post your questions or comments so that I can add extra topics or things that I need to develop which will help me to develop quality of videos series. You can follow at my twitter account rupaknpl and subscribe our youtube channel onlinegyannepal. Similarly keep on visiting my personal blog https://webocreation.com where you will find lots of free modules.

In next video, I will show you OpenCart Framework code flow. So don’t miss it as if you understand this flow then you can start coding without seeing other videos. So see you in next video and happy learning and thanks for watching and liking my videos.

See you.

LEAVE A REPLY

Please enter your comment!
Please enter your name here