Installing / Using OpenCart extensions

We use the latest version of OpenCart so make sure that the extension is 1.5.5.x compatible.

Keep in mind that some extensions requires access rights so after installing new extensions you should give access rights to yourself from "Mijoshop=>System=>Users=>User Groups=>Top Administrator" page.

If you're ttrying to install a vQmod extension then check the following article plz:
http://www.mijosoft.com/support/docs/mijoshop/how-to/how-to-install-a-vqmod-extension

In short:

1. Download the new custom extension (OpenCart Extensions Directory), make sure it is OpenCart 1.5.x compatible
2. Unzip and upload the contents of the Upload folder to "components/com_mijoshop/opencart" folder via FTP
3. Go to Mijoshop => Extensions and click on the Install link, this is not always required (especially for tools)

Details:

In this section we’ll discuss an OpenCart extensions. What is an OpenCart extension? I’m glad you asked that. An OpenCart extension is exactly what it sounds like. It’s something that extends the functionality of OpenCart in any way. We saw earlier that there numerous different modules that come with OpenCart that allow you to add different “things” on your website. You can add slideshows, blocks of text, boxes displaying products, and numerous other components. These, of course, add a lot of what you want to add to your e-commerce site, but it may not be all of what you want to add. What if, say, you wanted to add a stream of your latest tweets? You could not do this with just the current modules that come with a default OpenCart installation. You would need an extension… an additional module where you can add functionality to your OpenCart store.

You can find OpenCart extensions on OpenCart.com and elsewhere on the web. Some are free, some you have to pay for.

To show you the anatomy of an OpenCart extension and how you can install it, read on below.

If you open up an OpenCart extension and click into the folder(s) there once you ectract the ZIP file, you’ll eventually come to a directory that contains the following folders…

admin
catalog
Let’s start with these 2 folders. The “admin” folder contains all the files needed for what you’ll see in the administration panel when you install the extension. The module appearing in the list in the “Modules” section will be produced by this code (and this includes all text and input fields).

Secondly, there is the “catalog” folder. The code in the files found in the “catalog” folder will produce what a customer sees when they visit your OpenCart website. The code in these files handle the customer facing aspects of your OpenCart store,

Drilling down a little bit deeper, let’s take a look at the actual files found in the “admin” and “catalog” folders…

admin/controller/module/modulename.php
admin/language/english/module/modulename.php
admin/view/template/module/ module_name.tpl catalog/controller/module/modulename.php
catalog/language/english/module/modulename.php
catalog/view/theme/default/template/module/module_name.tpl

The folder/directory structure of the administration portion of an extension is going to be pretty much the same no matter what extension you install.

With the catalog section, things are a little bit different. You might have a number of extra files and folders in the catalog/view/ directory. There might be a folder called “javascript” in the catalog/view/ directory and there might be an extra folder with images in it in the catalog/view/theme/default/ folder. It really depends on what the template needs.

Notice too, that we are essentially installing new files in the default there that comes with OpenCart. Many (though not all) extensions are structured this way. An extension will often use the default theme to configure different paths to the different files, images, and scripts that it needs to display things properly. That is what we said that it’s very important to leave the default theme in the themes folder even if you are not using it as the primary theme for your OpenCart store.

If you want to ever do want to do any editing of what the customer sees in your extension, your best bet is to edit the .tpl file found in the catalog/view/theme/default/template/module/ folder is your best bet (though you may have to edit some of the content in the other files in the folders found in the catalog directory. OpenCart follows an MVC design pattern and different files affect the display in others.

If you are ever in doubt about what to do with anything regarding an extension, read the instructions and/or documentation that comes with extension. It will be included with the ZIP package that you download (or… at least it should be).

Installing an OpenCart Extension

Installing an OpenCart extension can be as easy as “merging.” Simply upload the admin and catalog folder discussed above to the root directory of your OpenCart Store via your FTP client.

opencart-install-extension


Sometimes I like to install things the “long way” clicking into each individual file much like I did for installing an OpenCart theme. It just gives me a better idea of what is installing where, and how an OpenCart extension is put together. This is completely optional.

Activating an OpenCart Extension

Now that your OpenCart extension is installed you need to activate it like you would any other module.

  1. Sign in to your OpenCart administration panel
  2. Hover over the “Extensions” menu item and click “Modules”
  3. Find your extensions in the module list and click the “Install” link next to it.
  4. Next, click on the “Edit” link that appears.
You will now be taken to a screen where you can begin to set up and configure your extension. What you need to do to set it up depends on the extension. Again, if you ever in doubt, read the documentation that comes with the extension.

Once you are done setting the configurations that you need to set, be sure to set your extension to “Enabled” and click on the “Save” button at the top of the screen.

Adding an Extension to a Layout

You’re still not done yet. Now that your extension is activated, you still need to add it to the different pages that you want to add it to to get it to display where you want. To do this, you go through the same process as you would any other module. For more information on how to do this, see the section Understanding the OpenCart Layout and Modules. Fortunately, the ability to add the extension module to different layouts is often present directly in the extension’s configuration menu itself. You just need to add it to the layouts that you want to add it to.

You extension is now ready to go! Congratulations, you have just installed and activated your first OpenCart extension.
  • 4 Utenti hanno trovato utile questa risposta
Hai trovato utile questa risposta?

Articoli Correlati

Official "User Manual" of OpenCart

Here you can find the full User Manual of OpenCart:Click here to view the Admin Guide by OpenCart

Understanding the MijoShop Layout and Modules

This is a tutorial post regarding the internal Mijoshop (OpenCart) layout and how you can use the...

Adding Categories

This article will teach you how to add a category in to your Mijoshop store in your Mijoshop...

Adding Products

Learning how to add products is probably one of the more important aspects, if not the most...

Attributes and Attribute Groups

What are attributes? How do you use them in OpenCart? Product attributes and can be thought of as...