第 2 位会员
@fecshoper #2楼
如果注释,你需要注释所有,因为配置在2个配置文件中,vendor 和common中都有,注释一个是没有用的,
你按照我给你的办法处理把。在文件@common/config/fecshop_local_services/Search.php
@common/config/fecshop_local_services/Search.php
把 'enableService' => true, 改成 'enableService' => false,
'enableService' => true,
'enableService' => false,
@apphtml/config/fecshop_local_services/Store.php
你把xunsearch关掉把,如果你不使用中文搜索,
因为默认中文用的是xunsearch,删除产品需要删除搜索引擎里面的数据,链接xunsearch失败造成的报错:
打开这个文件:
https://github.com/fecshop/yii2_fecshop/blob/master/config/services/Search.php
'xunSearch' => [ 'class' => 'fecshop\services\search\XunSearch', 'enableService' => true, /* 'fuzzy' => true, # 是否开启模糊查询 'synonyms' => true, #是否开启同义词翻译 'searchLang' => [ 'zh' => 'chinese', ], */ ],
但是,这里的文件你不能动,你不能修改vendor里面的文件,因此,你可以到这个文件里面修改:
https://github.com/fecshop/yii2_fecshop_app_advanced/blob/master/common/config/fecshop_local_services/Search.php
你可以给产品加一个属性,品牌属性,然后通过品牌国兴过滤出来产品即可
@fecshoper #2楼 未审核的评论只能看到自己的
无脑粘贴,有报错自己不看,还贴上来,鄙视!样式这么乱也不调整,继续鄙视!!!
自己看报错信息,我给你弄出来了
The directory is not writable by the Web process: /www/web/fecshop/apphtml5/web/cn/assets
index.php文件很多的,你要找到对应的index.php文件,参考这个:
http://www.fecshop.com/topic/268
你是product生产模式,你打开develop模式查看下报错,具体打开方式查看:
http://www.fecshop.com/topic/265
好的,先尝试自己解决,自己解决了,可以在这里发 技术分享 帖子
解决不了,就在这里发帖提问
http://www.fancyecommerce.com/2016/05/03/php-扩展安装-mongo-,redis-,soap,imap,pdo_mysql,oauth/
@tree #7楼 手机端的图片是懒加载模式,你是不是改动东西造成没有执行懒加载?
<img width="100%" src="//img.fancyecommerce.com/media/catalog/product/cache/bd935443df1c50537d4edaab4af5d446/296/0/2/01/20160722142719_52348.jpg" class="lazy" data-src="//img.fancyecommerce.com/media/catalog/product/cache/bd935443df1c50537d4edaab4af5d446/296/0/2/01/20160722142719_52348.jpg">
图片的实际地址是:data-src,里面存储的地址
data-src
@owen #2楼 解决了,在这里回复一下问题的原因,以及解决的方式
403就是找不到文件,这个就是nginx配置,以及配置下找不到文件的报错,这个自己诊断。
别人只能提示,具体自己去解决
@tree #7楼
1.图片 你清空下浏览器缓存
2.你去看看你是否有这个文件夹嘛,解决问题能力这么差,这个和fecshop没有关系,你nginx配置有问题, 或者@app/web/cn/index.php 不存在,访问不到入口文件,就是自己配置的问题。
你执行:
composer update
的时候出问题了吧。看日志,肯定有报错
@profress [#2楼](#comment2) 没有token不行的,自己觉得可以,为什么你解决不了问题?
自己觉着正确的事情多了,别人指点了,还觉着觉着。。。
需要在nginx里面添加配置:
location /cn/ { index index.php; if (!-e $request_filename){ rewrite . /cn/index.php last; } }
完整配置如下:
server { listen 80 ; server_name fecshop.apphtml5.fancyecommerce.com fecshop.apphtml5.es.fancyecommerce.com; root /www/web/develop/fecshop/apphtml5/web; server_tokens off; include none.conf; index index.php index.html index.htm; access_log /www/web_logs/access.log wwwlogs; error_log /www/web_logs/error.log notice; location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fcgi.conf; } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { expires 30d; } location /fr/ { index index.php; if (!-e $request_filename){ rewrite . /fr/index.php last; } } location /es/ { index index.php; if (!-e $request_filename){ rewrite . /es/index.php last; } } location /cn/ { index index.php; if (!-e $request_filename){ rewrite . /cn/index.php last; } } location /de/ { index index.php; if (!-e $request_filename){ rewrite . /de/index.php last; } } location ~ .*\.(js|css)?$ { expires 12h; } location /api { rewrite /api/([a-z][0-9a-z_]+)/?$ /api.php?type=$1; } }
对于第一点,看您配置好了,而且是cn,您需要添加一下nginx配置,稍等我给你找找
1.语言切换需要进行相应的配置,譬如你切换成了fr语言,地址为:
http://fecshop.apphtml5.fancyecommerce.com/es/
你需要到@app/web/ 路径下面,查看是否存在es,目前只有fr cn两个语言目录,参看文件: https://github.com/fecshop/yii2_fecshop_app_advanced/tree/master/apphtml5/web
如果你要添加其他的语言,可以复制fr文件夹成一个新的,然后更改下名字,譬如es。
然后去 store.php 中配置一下store即可。
2.图片不显示的处理:
你清空一下这个文件路径 appimage/common/media/catalog/product/cache/ 下的所有文件。然后重新访问试试
appimage/common/media/catalog/product/cache/