Post by TanishaEileen » Sat Apr 30, 2016 1:57 am


So I downloaded a new theme for opencart and i'm in the middle of uploading the files through ftp. It has come across a snag and is asking me to overwrite a the catalog/view/javascript/common.js file. I'm not sure if I should do this or not, any advice? If I do will it mess with anything? I appreciate any input or help




Sat Apr 30, 2016 1:55 am

Post by villagedefrance » Sat Apr 30, 2016 3:05 pm

Well done for spotting this potential problem!

I certainly would not overwrite the default common.js, because this will affect the default template.

Make sure you compare the 2 files first. If your theme file is identical to the default one with only added scripts, then it should be ok to overwrite. If they are substantially different then what I would do, is to rename the .js from the new theme, like this for example "commonTheme.js", and change/add the call in the header.tpl of my new theme.

OpenCart custom solutions @

User avatar
Active Member


Wed Oct 13, 2010 10:35 pm
Location - UK

Post by viethemes » Sat Apr 30, 2016 10:56 pm

You should take a look at this topic ... 8&start=80. - OpenCart turtorials, news, tips and stricks, extension

Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme

Extra Positions PRO, Custom JavaScript, Custom CSS and others

User avatar
Active Member


Thu Jan 08, 2015 12:17 pm

Post by IP_CAM » Sun May 01, 2016 8:21 am

I had some Custom Themes, they require some specific entries to be placed into the common.js File, to enable them to function in full. Therefore, the best way is, to just compare both common.js files contents, then, you will find out about such addings. Usually they do NOT 'hurt' anything else, and the file will function without any problems with the default Theme as well.

Just ALWAYS rename the default common.js into d_common.js (and other Custom Theme changed key-files!), to still have it, before you upload such an Extension/theme, containing ANYTHING, not only the common.js, placed OUTSIDE of the THEME Subdirectory, in case, you decide on removing such Themes again. If everything works well, you could later remove such 'd_'-marked Spare Files out of your Software for good.

I don't use Forum Mail, to reach me, contact:
Server Q & A Basic Information on Code + Settings
Demoversion OpenCart LIGHT v.
1'400+ FREE OC Extensions - from OC v.1.5.x up,
on the world's largest OC-related Github Site:

User avatar
Legendary Member


Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 3 guests