test 发表于 2020-5-3 15:49:49

修改crmeb3.2商品规格默认使用商品封面图片

一,文件路径/app/admin/view/store/store_product/create.php
二,编辑create.php文件约1088行或搜索获取商品信息方法getProductInfo
找到getProductInfo方法后
找到以下代码                  if(productInfo.id && that.id){
                        that.$set(that,'formData',productInfo);
                        that.generate();
                  }
更换为
                  if(productInfo.id && that.id){
                        // sssi修改规格图片没有的情况下默认调用商品图20200503
                        if(!res.data.productInfo.attr.pic){
                            productInfo.attr.pic = productInfo.image
                        }
                        that.$set(that,'formData',productInfo);
                        that.generate();
                  }

页: [1]
查看完整版本: 修改crmeb3.2商品规格默认使用商品封面图片