Latest Articles
So far this was never an issue, there were problems with uploading modules via the installer because of the ftp connection but you could allways install ocmods without any issue. However, some .. Read More
People had this issue so many times I thought I would write a bit about it. The  types of issues with opencart's 2.x modification system that I identified so far are: 1. Old Vqmod .. Read More
This small tutorial will show you how to manually add custom links to the default top menu in opencart. If you dont want to go trough all the hustle and would like to be able to completly customize.. Read More
To enable seo urls in opencart navigate in admin to system > settings , edit the store and on the server tab of the store settings you will find "Use SEO urls", set it to yes. So far e.. Read More
All Articles

Ocmod not working in opencart frontend

People had this issue so many times I thought I would write a bit about it.

The  types of issues with opencart's 2.x modification system that I identified so far are:

1. Old Vqmod version installed which doesnt support ocmod

2. Ocmod cache could not be written due to insufficient folder permission

3. The ocmod cache doesnt get loaded in frontend (ocmod works in admin but not in frontend)

The most common I encountered is number 3 because it has to do with the opecart installation method.

Some control panel software installers do not properly configure the opencart root config.php file.

If you are just beginig with ocmod, and install your first modification but nothing happens after you refreshed the ocmod cache, you should first check the problems 2 and 3.

For problem number 2: After you are certain that you refreshed the ocmod cache, log in to your store's root via a ftp client and check if in the folder system/modification (in opencart 2.0.x) or system/storage/modification (for opencart 2.1+) you find a bunch of other folders like admin and catalog. If you do, then this is not the issue, if you dont, then you might have permission problems so you should check your error logs.

For problem no 3: Log into your store's root via a ftp client and open the root config.php in your text editor of choice. If the root config.php contains a constant DIR_CATALOG then this is a problem. You must take the value from DIR_CATALOG, assign it directly to DIR_APPLICATION and then delete the DIR_CATALOG line. After this, ocmod should work fine for frontend as well. On the other hand, if you do not find that constant in the root config then you dont have this problem, do not worry about the one from the admin/config.php, that one is supposed to be there.

If you upgraded you opencart version from 1.5 to 2.x, make sure to also upgrade your vqmod version so that you dont run into problem no 1.

 

Posted by Flo

Related Articles

A very common problem that many users encounter is the Add to Cart sometimes not working on their site homepage. The problem is related to the url of the store. A website can be accessed trough adress like: example.com as well as www.example.com When you first install opencart, the base of the website is going to be written in config.php, but it can only be one: either example.com or www.example.com (depends on the adress you accessed the installation in the first place). So if you install your store by going to example.com, then the base of your website in config.php will be exampl..
30 comments on this article - view comments
Unlike opencart 1.5.x, the 2.x version comes with its own extension installer accessible in admin at extension > Extension Installer. But in order to install modules directly from the opencart admin you must have ftp enabled in your admin settings and the right ftp credentials added at the ftp settings in admin > system > settings on the ftp tab. If you have the ftp set up in opencart then installing modules is very easy. You must simply upload the module archive through the admin extension installer page.The archive you are uploading must have its name ending in .ocmod.zip. If..
1 comments on this article - view comments
So far this was never an issue, there were problems with uploading modules via the installer because of the ftp connection but you could allways install ocmods without any issue. However, some automated cpanel installers instead of solving the previous issues they created on opencart installations, now they add even more. If you are trying to upload .ocmod.xml files via the extension installer and you get an error like this one: SyntaxError: Unexpected token < in JSON at position 0 Warning: mkdir(): No such file or directory in ../admin/controller/extension/installer.php..
5 comments on this article - view comments

0 Comments To "Ocmod not working in opencart frontend"

Write a comment

Your Name:


Enter the code in the box below:

Your Comment:
Note: HTML is not translated!