产品
商城演示
案例演示
功能
致开发者
致商店所有者
工业
时尚
健康与美容
食品与饮料
汽车
工业和科学
家具
B2B 电子商务
国际
下载
下载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/8/9
位置:
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/8/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/8/9
位置:
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.
仍然有问题或需要帮助?
.
高级支持服务
.
获得nopCommerce团队的专门支持,并在24小时内保证得到答复。
.
开发者在线课程
.
获得运行和自定义nopCommerce网站所需的实用技术技能。