筛选如何改成中文,在Attr.php和BatchAttr.php改就是后台变成中文,前台没有改变
本文由 pei93 创作,采用 知识共享署名 3.0 中国大陆许可协议 进行许可。 可自由转载、引用,但需署名作者且注明文章出处。
目前只做了字段,后面编辑,前台模板默认不显示short_description, 如果想显示,自行在模板中添加吧,很容易。
short_description
@Fecmall #1楼 能告诉下在在那个模板中添加吗,,找不到
@pei93 #2楼
Appfront:https://github.com/fecshop/yii2_fecshop/blob/master/app/appfront/theme/base/front/catalog/product/index.php
@Fecmall [[[#3楼](#comment3)](#comment3)](#comment3)
<?= Yii::$service->page->widget->render('product/coupon', ['short_description' => $short_description]); ?>
是这样添加吗。那个渲染的路径是什么呢?
自己花时间研究一下代码结构吧