4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

EC-CUBEでjavascriptを追加する

Posted at

EC-CUBEのカスタマイズに初挑戦中...
追加で、javascriptファイルを入れてみました。

user_data/parkerge/テンプレート名/js に

追加するjsファイル設置する。

data/Smarty/テンプレート名/site_fream.tplを編集。

data/Smarty/テンプレート名/site_fream.tpl
<script type="text/javascript" src="<!--{$TPL_URLPATH}-->ファイル名.js"></script>

...読み込み成功しました。

でも、これだと全ページで読み込むんですよね。。
トップページのみの読み込みにしたかったので、勉強してみます。。

<完了>

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?