From 5d65011e7c3b3c39dc5250be11642e398d5aebff Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Fri, 21 Oct 2016 11:41:55 +0300 Subject: [PATCH] big commti --- console/migrations/m161020_145858_product_variant_add_status.php | 27 +++++++++++++++++++++++++++ frontend/views/catalog/product.php | 2 +- frontend/views/catalog/products.php | 2 +- 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 console/migrations/m161020_145858_product_variant_add_status.php diff --git a/console/migrations/m161020_145858_product_variant_add_status.php b/console/migrations/m161020_145858_product_variant_add_status.php new file mode 100644 index 0000000..b3f9fac --- /dev/null +++ b/console/migrations/m161020_145858_product_variant_add_status.php @@ -0,0 +1,27 @@ +addColumn('product_variant', 'status', $this->integer(5)); + } + + public function down() + { + $this->dropColumn('product_variant', 'status'); + } + + /* + // Use safeUp/safeDown to run migration code within a transaction + public function safeUp() + { + } + + public function safeDown() + { + } + */ +} diff --git a/frontend/views/catalog/product.php b/frontend/views/catalog/product.php index b78df07..f725f49 100755 --- a/frontend/views/catalog/product.php +++ b/frontend/views/catalog/product.php @@ -455,7 +455,7 @@ FlipclockAsset::register($this); Бренд - brand) ? $product->brand->name : $product->brand->name ?> + brand) ? $product->brand->name : '' ?> getActiveProperties($category->category_id) as $group): ?> diff --git a/frontend/views/catalog/products.php b/frontend/views/catalog/products.php index 27a63fe..840d05e 100755 --- a/frontend/views/catalog/products.php +++ b/frontend/views/catalog/products.php @@ -10,7 +10,7 @@ use yii\helpers\Url; use yii\widgets\ListView; - $this->params['seo']['title'] = !empty($category->meta_title) ? $category->meta_title : ''; + $this->params['seo']['title'] = !empty($category->meta_title) ? $category->meta_title : $category->name; $this->params['seo']['fields']['meta-title'] = $category->meta_title; $this->params['seo']['h1'] = !empty($category->h1) ? $category->h1 : $category->name; -- libgit2 0.21.4