Fecmall

第 2 位会员

会员
个人信息
  • 加入于 2017-05-31 17:38:45
  • 城市 Qingdao
  • GitHub https://github.com/fecshop
  • 最后登录时间 2天前
  • 签名 净化自己,潜心编码
个人简介
Terry,Fecmall开源产品作者,12年电商经验一线程序员开发者,擅长规划产品,架构设计。
个人成就
  • 发表文章次数 744
  • 发布回复次数 5760
  • 个人主页浏览次数 683
block重写4年前

1.关于代码,尽量用代码,别用截图

2.将配置部分的第二行的开头 fecbbc 改成 fecshop 试试

Fecmall 插件扩展方式,添加后台自定义菜单4年前

后期优化:安装扩展插件后,直接刷新后台菜单对应的缓存,不需要用户去后台自动刷新缓存/

Fecmall开源系统的演示4年前

@cao220330 #1楼 那个失效了?贴出来

Lnmp一键安装包 最新安装Fecshop过程4年前

@Axin #2楼 现在fecmall-2.x版本 都 2.8了,安装也方便很多了,界面安装部署,简化很多

如果宝塔可以一键部署,不需要配置nginx这些,有空您安装试试。

多商户-前端遍历产品关联所署供应商4年前

1.多商户的产品表 product_flat,有一个字段: bdmin_user_id,这个就是商家的id

2.通过这个id去商家表 bdmin_user 查询出来就可以了

关于属性名带下滑线或横杆的问题?4年前

这是属性值好不好?

自己填的就是这个值,就显示这个值

不满足就自己二次开发,说了很多遍了,不满足就去开发。

手机微信访问商城连接,登录页面跳转的是空白页面4年前

微信内部访问登陆页面,进行的是微信登陆部分,请自行配置微信,仔细看文档。

关于属性名带下滑线或横杆的问题?4年前

描述问题都描述不清楚,让别人看不懂,你还恼火个jj。

不满足自己的业务,就自己去二次开发。。/

2.82压缩包安装版本fecmall window本地运行,登录应用市场时遇到500错误,调试后发现远程登录接口返回空4年前

出现问题,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);这个返回值,找到根上的报错。

請問如何繁体中文化呢4年前

@carlos #3楼 后台加语言包肯定是可以的,但是有点费劲,不像前台那么容易。

关于手机端,域名不带www时页面默认成了PC的样式问题(正常应该是H5界面的)4年前

这个很容易处理

nginx做配置,不带www的域名,301跳转到带www的

譬如 fecshop.com nginx做301跳转到 www.fecshop.com

請問如何繁体中文化呢4年前

前台繁体,直接加个语言包即可

后台加多语言比较麻烦。

多货币使用Paypal支付时如果使用基础货币结算4年前

自行改一下代码

对于订单表的数据,您查看sale_flat_order表可以看到,涉及到金额的字段,都有一个基础货币的字段,base_开头

$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里面的涉及到当前货币的金额,改成基础货币的金额即可。

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很多函数都需要改一下金额

Your Site Analytics