Following lines will be helping for you if you’r trying to add
some javascript file to your custom theme.
<action method=”addItem”><type>skin_js</type><name>js/product.js</name></action>
Above line will try to find the product.js file under /skin/frontend/default/Your_Theme/js /product.js
Similarly you can remove a default javascript file by putting this line in your layout file:
<action method=”removeItem”> <type>js</type> <name>varien/product.js</name> <params /> </action>
Hope this will be helping someone for fighting against Magento.
No comments:
Post a Comment