製品
店舗デモ
ショーケース
機能
開発者向け
店舗オーナー向け
産業
ファッション
健康& 美容
食品&飲料
自動車
工業 & 科学
家具
B2B eコマース
国際
ダウンロード
nopCommerce ダウンロード
マーケットプレース
翻訳
著作権削除キー
モバイルアプリケーション
Web API
サポート & サービス
トレーニング
ドキュメント
コミュニティフォーラム
プレミアムサポートサービス
見積り依頼
お問い合わせ
パートナー
日本語
English
Español
Deutsch
Russian
Français
Italiano
Português
Türkçe
简体中文
日本語
Tiếng Việt
始めましょう
Shopping cart
ユーザ
ログイン
ユーザ登録
ホーム
>
フォーラム
>
General
>
General Support
>
Added JS File Dosen't Work
Added JS File Dosen't Work
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
alperbaskir
投稿総数:
8
カルマ:
40
参加:
2017/08/09
ロケーション:
Turkey
投稿完了:
6 年 前
Hey,
I'm working on custom theme and I added some js file to -> themes/newtheme/views/shared/head.cshtml
Here is my problem:
Added script file dosen't work on my project but when I copy script block from this file and paste needed page, it's working.
So why my script files dosent work with first method?
sohel
MVP
認定開発者
投稿総数:
1623
カルマ:
15968
参加:
2013/11/25
ロケーション:
Bangladesh
投稿完了:
6 年 前
alperbaskir wrote:
Hey,
I'm working on custom theme and I added some js file to -> themes/newtheme/views/shared/head.cshtml
Here is my problem:
Added script file dosen't work on my project but when I copy script block from this file and paste needed page, it's working.
So why my script files dosent work with first method?
1. Could you ensure your Js file loaded in the client browsers?
2. if yes, then may be your script run before html load. You should debug js code from browsers.
embryo
投稿総数:
1390
カルマ:
11685
参加:
2012/08/10
ロケーション:
United States
投稿完了:
6 年 前
As Sohel indicates, it's probably not being called before the HTML starts rendering..
I had similar issues with some scripts and the easiest solution was to just add those new scripts into the /Scripts/public.common.js file.
alperbaskir
投稿総数:
8
カルマ:
40
参加:
2017/08/09
ロケーション:
Turkey
投稿完了:
6 年 前
Thank you guys. Problem solved.
I guess script which I added not need to load on head tags. then I go required page and add script file like I copied custom theme. and its working.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
まだ質問があるか、助けが必要ですか?
.
プレミアムサポートサービス
.
24時間以内に応答を保証するnopCommerceチームからの専任サポートを受けてください。
.
開発者向けオンラインコース
.
nopCommerceウェブサイトの実行およびカスタマイズに必要な実用スキルおよび技術スキルを習得します。