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
Tanisha
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 @ https://villagedefrance.net
http://www.viethemes.com - 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
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.
Ernie
I don't use Forum Mail, to reach me, contact: jti@jacob.ch
-
Server Q & A Basic Information on Code + Settings
http://www.everyauction.info/serverinfo.html
Demoversion OpenCart LIGHT v.1.5.6.5
http://www.jti.li/shop/
1'400+ FREE OC Extensions - from OC v.1.5.x up,
on the world's largest OC-related Github Site: https://github.com/IP-CAM
-
Users browsing this forum: No registered users and 3 guests