April 4, 2020
Describing files and folder of OpenCart Framework – OpenCart tutorial

Describing files and folder of OpenCart Framework – OpenCart tutorial


hi everyone namaste, namaste is the 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.loc today in our third video I’m going to
describe files and folders of opencart framework first thing we do is
look through the files in folder structure. So this files and folder
structure is of opencart 2.2 and which is similar in OpenCart 3 as well
the only distinct folder structure that I see in terms of modules are they put
modules inside the extension folder other than that it looks similar in
terms of modules modules developer so now let’s talk about that admin folder
admin folder has its own controller folder language folder model older and
view folders if you are developing for the admin sections then these are the
folders here you are going to touch. In catalog folders similar you get the
controller language modules and model and view that holds all front-end style
files and folders we will discuss in details about these folders when we
start making hello modules. The another folder which contains cache
folder catalog folder and payment folder with a no_image.png placeholder.png and profile.png. Placeholder and no images are use if there are no images
found. For example let’s go to the category page let’s see Show all Desktops so you will see this product eight which has no images no main image so it’s it gives the
placeholder.png. Image’s catalog folder catalog folder catalog’ folder contains main images
which we upload either from backend or the frontend like category image
product image, images inserted from the text area etc. Let’s take an example like
let’s say we want to add an image for the categories let’s say we upload an image
for this category category and let’s create a new folder called camera camera directory is created basically
inside cameras let’s upload image and select it. Before saving let’s check here so you create camera
folders in here that is created there now let’s camera folder is created here
so whatever images you uploaded it will be stored in here so what the cache
folder do is it whatever whatever whatever we resize for the main image
and then it will be cached in here so this one is like one hundred hundred one
hundred by hundred size image because the thumbnails that it created here this
one is hundred one hundred so let’s go to the front end the cameras so when you see this one
these images these images is 80 by 80 So you see it creates when it loads so it’s
like a divided this whole next time it will just directly take from this cache
folder like this way images are handled in the image folder so there is another
install folder who is I already deleted so that install folder contains open
opencart.sql file which create tables on a specified database and
insert demo data other files have a code to facilities to install opencart. System system folder system folder is the best where opencart framework is
defined it contains it contains it contains config folder engine helper
libraries and storage folders will provide details of this folders in next
video with the code flow and there is a htaccess.txt is a configuration file
used on web server running the Apache web server software where you rename the htaccess.txt to only .htaccess mostly we use this for the SEO URL
redirects in opencart if you are using ngix then the ngix has its own way
but for for Apache web server we use .htaccess to write all the redirects which
is given by the opencart directly and now the other other file is config.php where constant is defined and its different as per the installation
then in index dot PHP where we can define what version of opencart we are
using and start of the application which we will define in next videos last one
is a php.ini which is the configuration file for running
application it is used to control variables something like this magic quote
GPC register global Global default character charsets memory
limit maximum execution time and many others
I found that shared hosting doesn’t provide this facilities to change it
from here but if you are using private servers then you can set to use them as
for the module development this will be the file if that’s where the module
module development I just created a basic file structures that I want to
show to you guys so this left left hand shows files and folder structures that
we need to we need to place our files for modules in development so this is in
opencart 2 and this is on open country on the right hand side so only changes
that we see is the controller modules but here it’s a controller exchange and
in modules so we need to create in controller like language view and in
catalog controller language view same same follows in opencart 2.2 as well okay so our third video is completed hope
you like it as always please don’t forget to post your questions are comments
so that I can add extra topics or things that I need to develop which will help
me to develop quality of a videos series you can follow at my Twitter account
rupaknpl and subscribe our YouTube channel
onlinegyannepal similarly keep on visiting my personal blog webocreation.com where you can find a lot 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 videos
and happy learning and thanks for watching and liking my videos see you

4 thoughts on “Describing files and folder of OpenCart Framework – OpenCart tutorial

Leave a Reply

Your email address will not be published. Required fields are marked *