2017-05-09 52 views

回答

0

如果你想添加,然後JavaScript代碼view.phtml實現代碼目錄

app\design\frontend\youtheme\youtheme\template\catalog\product\view.phtml 
0

添加下面的代碼在你的模塊文件路徑:應用程序/設計/前端/ 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> 
相關問題