fecmall后台支持excel上传产品和分类,来方便大家
如果excel表格的数据是正确的,但是上传excel后没有反应,可能是权限的问题
chmod 777 -R ./appadmin/runtime/upload
然后重新测试是否可以上传
有一些历史版本会js报错Uncaught ReferenceError: func is not defined,忽视即可,这个报错不影响form提交,另外新版本已经去除这个。
Uncaught ReferenceError: func is not defined
权限已修改 错误信息如下: Uncaught ReferenceError: func is not defined
at HTMLButtonElement.onclick (VM289 :1)
managerupload:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error) VM302 :1 Uncaught ReferenceError: func is not defined
onclick @ VM302 :1 VM304 managerupload:1 POST http://....../catalog/productupload/managerupload 500 (Internal Server Error)
PHP Deprecated Warning – yii\base\ErrorException Array and string offset access syntax with curly braces is deprecated
文件权限问题
进入fecmall的根目录,执行命令行
上传产品的代码文件路径是:
@fecshop\app\appadmin\modules\Catalog\block\productupload\Manager.php
函数:uploadProduct()
uploadProduct()
可以自行debug代码,找找原因。