Page 1 of 1

Using vQmod with changes to common.js

Posted: Tue Jun 11, 2013 7:58 pm
by Matty
Have recently decided to rebuild my store from scratch using vQmod.

I have a few extensions which require changes to core files stylesheet.css and common.js

Changes to stylesheet.css can easily be managed using a script like this...

Code: Select all

 <operation info="Add stylesheet changes">
 <search position="before"><![CDATA[
 	</head>
 ]]></search>
 <add><![CDATA[
 	<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/vqmod.css" />
 ]]></add>
 </operation>


But what about changes to common.js? Are there any tricks or methods to implement changes without modifying the core file?

If not, what happens when it comes to upgrading? Will I have to rebuild the common.js file (with changes required by extensions) for each upgrade?

Thanks
Matt

Re: Using vQmod with changes to common.js

Posted: Tue Jun 11, 2013 11:03 pm
by Johnathan
You need to do it the same way, by changing the .js file that is loaded. I don't know of any way around this, which means you will have to check for common.js changes in future versions.