第 2 位会员
@ebhrz #4楼 @cao220330 #1楼 已经更新
1.关于代码,尽量用代码,别用截图
2.将配置部分的第二行的开头 fecbbc 改成 fecshop 试试
fecbbc
fecshop
后期优化:安装扩展插件后,直接刷新后台菜单对应的缓存,不需要用户去后台自动刷新缓存/
@cao220330 #1楼 那个失效了?贴出来
@Axin #2楼 现在fecmall-2.x版本 都 2.8了,安装也方便很多了,界面安装部署,简化很多
如果宝塔可以一键部署,不需要配置nginx这些,有空您安装试试。
先收藏一下,后面处理,多谢。
1.多商户的产品表 product_flat,有一个字段: bdmin_user_id,这个就是商家的id
product_flat
bdmin_user_id
2.通过这个id去商家表 bdmin_user 查询出来就可以了
bdmin_user
@a474516631 #4楼 多谢分享/
这是属性值好不好?
自己填的就是这个值,就显示这个值
不满足就自己二次开发,说了很多遍了,不满足就去开发。
文档:http://www.fecmall.com/doc/fecmall-guide/fecyo/cn-1.0/guide-fecmall-fecyo-phone-weixin-account.html
微信内部访问登陆页面,进行的是微信登陆部分,请自行配置微信,仔细看文档。
接着追踪,自己解决。
描述问题都描述不清楚,让别人看不懂,你还恼火个jj。
恼火
不满足自己的业务,就自己去二次开发。。/
出现问题,debug一下代码,看看具体的报错,这是正道。
@fecshop\services\extension\RemoteService.php (https://github.com/fecshop/yii2_fecshop/blob/master/services/extension/RemoteService.php)
// 远程登陆 public function login($param) { $url = $this->remoteUrl . $this->loginUrlKey ; $data = [ 'email' => $param['email'], 'password' => $param['password'], ]; list($responseHeader, $result) = $this->getCurlData($url, 'post', [], $data, 30); if ($result['code'] == 200) { $access_token = $responseHeader['Access-Token']; $this->setAccessToken($access_token); return true; } return false; }
debug一下list($responseHeader, $result) = $this->getCurlData($url, 'post', [], $data, 30);这个返回值,找到根上的报错。
list($responseHeader, $result) = $this->getCurlData($url, 'post', [], $data, 30);
@carlos #3楼 后台加语言包肯定是可以的,但是有点费劲,不像前台那么容易。
这个很容易处理
nginx做配置,不带www的域名,301跳转到带www的
譬如 fecshop.com nginx做301跳转到 www.fecshop.com
前台繁体,直接加个语言包即可
后台加多语言比较麻烦。
相关帖子:
http://www.fecmall.com/topic/4209
http://www.fecmall.com/topic/2064
您参考一下。
报错信息写道标题里面, 看三遍发帖说明:http://www.fecmall.com/topic/624
自行改一下代码
对于订单表的数据,您查看sale_flat_order表可以看到,涉及到金额的字段,都有一个基础货币的字段,base_开头
sale_flat_order
base_
$orderInfo['grand_total'] , 基础货币是 $orderInfo['base_grand_total']
$orderInfo['grand_total']
$orderInfo['base_grand_total']
1.controller: https://github.com/fecshop/yii2_fecshop/blob/master/app/appfront/modules/Payment/controllers/paypal/StandardController.php#L29
2.block: https://github.com/fecshop/yii2_fecshop/blob/master/app/appfront/modules/Payment/block/paypal/standard/Start.php#L24
$nvpStr_ = Yii::$service->payment->paypal->getStandardTokenNvpStr();
3.service:https://github.com/fecshop/yii2_fecshop/blob/master/services/payment/Paypal.php#L613
将这个services里面的涉及到当前货币的金额,改成基础货币的金额即可。
services
4.给你个例子自己参考
$currency = Yii::$service->page->currency->getCurrentCurrency(); $grand_total = Yii::$service->helper->format->number_format($orderInfo['grand_total']); $subtotal = Yii::$service->helper->format->number_format($orderInfo['subtotal']); $shipping_total = Yii::$service->helper->format->number_format($orderInfo['shipping_total']); $discount_amount= Yii::$service->helper->format->number_format($orderInfo['subtotal_with_discount']);
改成:
$baseCurrecy = Yii::$service->page->currency->baseCurrecy; $currency = $baseCurrecy['code'] $grand_total = Yii::$service->helper->format->number_format($orderInfo['base_grand_total']); $subtotal = Yii::$service->helper->format->number_format($orderInfo['base_subtotal']); $shipping_total = Yii::$service->helper->format->number_format($orderInfo['base_shipping_total']); $discount_amount= Yii::$service->helper->format->number_format($orderInfo['base_subtotal_with_discount']);
上面的代码没有调试,您自己核验一下吧,该services很多函数都需要改一下金额