在产品详细页面添加JS代码magento
答
如果你想添加,然后JavaScript代码view.phtml
实现代码目录
app\design\frontend\youtheme\youtheme\template\catalog\product\view.phtml
答
添加下面的代码在你的模块文件路径:应用程序/设计/前端/ yourtheme/yourtheme /布局/ modulename.xml和然后将您的js文件添加到皮肤文件夹中,它将在您的产品视图页眉中调用
<catalog_product_view>
<reference name="head">
<action method="addItem"><type>skin_js</type><name>js/yourjsfile.js</name></action>
</reference>
<catalog_product_view>