| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 | <?php/** * FecShop file. * * @link http://www.fecshop.com/ * * @copyright Copyright (c) 2016 FecShop Software LLC * @license http://www.fecshop.com/license/ */return [    'catalog' => [        /**         * Yii2 controllerMap 重写机制。         */        //'controllerMap' => [        //    'category' => 'appfront\local\local_modules\Catalog\controllers\CategoryController',                  //],        'params'=> [            //##############################            //# 		category部分设置	 ##            //##############################            //'category_breadcrumbs' => true, // 分类页面:是否显示分类的面包屑导航。            //'product_breadcrumbs' => true, // 产品页面:是否显示产品的面包屑导航。            /*             * 注意:做侧栏分类产品过滤的属性,必须是select类型的,其他的类型请不要用,             * 对于select类型,目前不支持多语言数据库存储,select类型的各个值是通过前端翻译文件来实现翻译的、             * 对于color  size 对应的保存值,只可以使用 '数字','字符','空格','&','-','_' 这6类字符             */            //'category_filter_attr' => [            //    'color', 'size',            //],           // 'category_filter_category'    => true,           // 'category_filter_price'       => true,           // 'category_query'              => [                // 放到第一个的就是默认值,譬如下面的30               // 'numPerPage' => [12, 30, 60, 90],        // 产品显示个数的列举                // 放到第一个的就是默认值,譬如下面的hot                /*                'sort' => [                        // 所有排序方式                    // 下面的譬如hot  new  low-to-high 只能用 字母,数组,-,_ 这4种字符。                    'hot' => [                        'label'        => 'Hot',   // 显示的字符                        'db_columns'   => 'score', // 对应数据库的字段                        'direction'    => 'desc',  // 排序方式                    ],                    'review_count' => [                        'label'        => 'Review',   // 显示的字符                        'db_columns'   => 'review_count', // 对应数据库的字段                        'direction'    => 'desc',  // 排序方式                    ],                    'favorite_count' => [                        'label'        => 'Favorite',   // 显示的字符                        'db_columns'   => 'favorite_count', // 对应数据库的字段                        'direction'    => 'desc',  // 排序方式                    ],                    'new' => [                        'label'        => 'New',                        'db_columns'   => 'created_at',                        'direction'    => 'desc',                    ],                    'stock' => [                        'label'        => 'Stock',                        'db_columns'   => 'qty',                        'direction'    => 'desc',                    ],                    'low-to-high' => [                        'label'        => '$ Low to High',                        'db_columns'   => 'final_price',                        'direction'    => 'asc',                    ],                    'high-to-low' => [                        'label'        => '$ High to Low',                        'db_columns'   => 'final_price',                        'direction'    => 'desc',                    ],                ],                */                                                   /*                  'price_range' => [                    '0-10',                    '10-20',                    '20-30',                    '30-50',                    '50-100',                    '100-150',                    '150-300',                    '300-500',                    '500-1000',                    '1000-',                ],            ],            */            //##############################            //# 		Product部分设置		 ##            //##############################            // 产品页面图片的设置            //'productImgSize' => [                //'small_img_width'  => 80,  // 底部小图的宽度                //'small_img_height' => 110,  // 底部小图的高度                //'middle_img_width' => 400,  // 主图的宽度           // ],            //'productImgMagnifier' => false, // 是否已放大镜的方式显示,如果否,则是内窥的方式查看            //##############################            //#     Review部分设置		 ##            //##############################            /*            'review' => [                 'add_captcha'                    => true,  // 增加review页面是否开启验证码验证。                'productPageReviewCount'         => 10,    // 在产品页面显示的review的个数。                'reviewPageReviewCount'          => 20,    // 在review列表页面,显示的review的个数                'addReviewOnlyLogin'             => true,   // 只有登录用户才有资格进行评论。                'ifShowCurrentUserNoAuditReview' => true, // 当前用户添加的评论,后台未审核的评论,是否显示?这个是通过ip来判断。                'filterByLang'                   => false,    // 是否通过语言进行评论过滤?默认只显示当前的语言下的评论,也就是客户在添加评论的store的语言。            ],            'favorite' => [                'addSuccessRedirectFavoriteList' => false, // 产品收藏成功后是否跳转到账户中心的收藏列表            ],            */        ],    ],];
 |