Aswe

第 492 位会员

会员
个人信息
  • 加入于 2018-05-15 23:10:10
  • 最后登录时间 5年前
个人成就
  • 发表文章次数 5
  • 发布回复次数 13
  • 个人主页浏览次数 2
怎样让注册会员就能发布产品评论?5年前

@Fecshop #4楼 我本机也测了两次,居然没报错了。抱歉!

怎样让注册会员就能发布产品评论?5年前

1、2解决了,谢谢

3没法测,要购买才行。

Feshop类重写完整实例5年前

赞!简明清晰:+1:

执行sitemapGeneral.sh报错:"/usr/bin/env: php: 没有那个文件或目录"5年前

@Fecshop #1楼 谢谢,可以执行了。只包含首页一条记录?

请问怎样在产品页面增加自定义内容?5年前

解决了,YiiRewriteMap写错。改正后正常:

'\fecshop\app\appfront\modules\Catalog\block\product\Index'   => '\appfront\local\local_modules\Catalog\block\product\Index',

重写功能很方便

请问怎样在产品页面增加自定义内容?5年前

@Fecshop #9楼 这个字段要用产品属性组的方法?没明白

请问怎样在产品页面增加自定义内容?5年前

@Fecshop [#7楼](#comment7) 对fecshop还不熟,请多指教:

mongodb和theme部分已重写,检查没问题。直接在@fecshop下的fecshop\app\appfront\modules\Catalog\block\product\Index.php增加

'url_referee'                => $this->_product['url_referee'],

没有问题,能取到数据并正常显示到页面。

现在把Index.php文件复制到appfront\local\local_modules\Catalog\block\product下编辑:

namespace appfront\local\local_modules\Catalog\block\product;
...
...
'url_referee'                => $this->_product['url_referee'],

,url_referee没有返回值,也没报错。

YiiRewriteMap:

return [
    /**
     * \fecshop\models\mongodb\Category 为原来的类
     * \appfront\local\local_models\mongodb\Category 为重写后的类
     * 重写后的类可以集成原来的类。
     */
    '\fecshop\models\mongodb\Category'  => '\appfront\local\local_models\mongodb\Category',
	'\fecshop\models\mongodb\Product'   => '\appfront\local\local_models\mongodb\Product',
	'\fecshop\app\appfront\modules\Catalog\block\product'   => '\appfront\local\local_modules\Catalog\block\product',
    // '\fecshop\app\appfront\modules\Cms\block\home\Index'  => '\appfront\local\local_modules\Cms\block\home\Index',
    
    // '\fecshop\app\appfront\modules\Catalog\block\product\CustomOption'  => '\appfront\local\local_modules\Catalog\block\product\CustomOption',
];

我是不是漏步骤了?

请问怎样在产品页面增加自定义内容?5年前

想在产品页下的"add to cart"下方增加个按钮"url of referee",点击按钮转向推荐人的微博。

这个按钮需要检测是否已登录。

”url of referee“的值已事先保存在产品信息里。

请问怎样在产品页面增加自定义内容?5年前

@KaiJuan [[#3楼](#comment3)](#comment3) 谢谢!我是想修改这上面的内容:产品页面

没弄懂怎么去调用数据库

请问怎样在产品页面增加自定义内容?5年前

在产品里添加了一个属性“referee”,想让referee的值出现在产品页面。

Your Site Analytics