优惠券报错,请求帮助,谢谢各位

bug问题 · blue888 · 于 3年前 发布 · 1069 次阅读

添加优惠券的时候,出现以下现象 Page: 404 !!!! ,页面找不到 /sales/coupon/managereditsave,,请先建立相应的module/controller/action ,再访问该URL

共收到 9 条回复
Fecmall#13年前 0 个赞

那个系统?fecmall还是fecyo fecro?

blue888#23年前 0 个赞

fecyo ,我已经找到问题了,使用条件要用int型,因为没提示友好的提醒,看了代码才知道。谢谢。

Fecmall#33年前 0 个赞

@blue888 #2楼

找到问题的原因,就详细说一下你怎么解决的?那个文件路径,哪里的代码,不是你自己解决就完事了

互帮互助才是开源原有的样子,

blue888#43年前 0 个赞

好的,非常乐意。 其实不用改代码的 我只是把使用条件改成了1或者0,原来我是填写中文的。 我现在尝试以下改成下拉框,一会改好了,我把代码贴出来。 谢谢

Fecmall#53年前 0 个赞

这是您自己二次开发的内容?

Fecmall#63年前 0 个赞

@blue888 #4楼 明白了,使用条件是金额, 可以填写 int和float类型

blue888#73年前 0 个赞

我很崇拜你们,我会一直用你们的产品的。 解决方案: 1、在addons/fecmall/fecyo/app/appadmin/modules/Sales/block/coupon/Manageredit.php 把91行到98行 [

            'label'  => Yii::$service->page->translate->__('Use Condition'),
            'name' => 'use_condition',
            'display' => [
                'type' => 'inputString',
            ],
            'require' => 1,
        ],

替换成 [

            'label' => Yii::$service->page->translate->__('Use Condition'),
            'name'  => 'use_condition',
            'display' => [
                'type' => 'select',
                'data' => [
                    1 => Yii::$service->page->translate->__('Condition1'),
                    2 => Yii::$service->page->translate->__('Condition2'),
                ],
            ],
            'require' => 1,
            'default' => 1,
        ],
		

2、在/addons/fecmall/fecyo/app/appadmin/languages/zh-CN/appadmin.php,增加 'Condition1' => '直接领券', 'Condition2' => '满减',

3、在添加/addons/fecmall/fecyo/services/Coupon.php

            ['use_condition' => 1],
blue888#83年前 0 个赞

@Fecmall #5楼 没有二次开发,我这两天才安装的。发现你们好厉害。虽然产品还有很多细节,但是想法很好。

Fecmall#93年前 0 个赞

多谢认可

先记录一下,后面找时间排查一下。

添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics