Commit 87f6f705972d21c8bb7e24a9e1027468e0456485
Merge remote-tracking branch 'origin/master'
Showing
5 changed files
with
12 additions
and
11 deletions
Show diff stats
common/modules/product/models/Brand.php
| @@ -27,12 +27,6 @@ class Brand extends \yii\db\ActiveRecord | @@ -27,12 +27,6 @@ class Brand extends \yii\db\ActiveRecord | ||
| 27 | public function behaviors() | 27 | public function behaviors() |
| 28 | { | 28 | { |
| 29 | return [ | 29 | return [ |
| 30 | - 'slug' => [ | ||
| 31 | - 'class' => Slug::className(), | ||
| 32 | - 'in_attribute' => 'name', | ||
| 33 | - 'out_attribute' => 'alias', | ||
| 34 | - 'translit' => true | ||
| 35 | - ], | ||
| 36 | 'artboxsynonym' => [ | 30 | 'artboxsynonym' => [ |
| 37 | 'class' => ArtboxSynonymBehavior::className(), | 31 | 'class' => ArtboxSynonymBehavior::className(), |
| 38 | 'keyNameValue' => 'brand_name_id', | 32 | 'keyNameValue' => 'brand_name_id', |
| @@ -41,7 +35,13 @@ class Brand extends \yii\db\ActiveRecord | @@ -41,7 +35,13 @@ class Brand extends \yii\db\ActiveRecord | ||
| 41 | 'valueFields' => [ // postKey => DBFieldName | 35 | 'valueFields' => [ // postKey => DBFieldName |
| 42 | 'name' => 'value' | 36 | 'name' => 'value' |
| 43 | ] | 37 | ] |
| 44 | - ] | 38 | + ], |
| 39 | + 'slug' => [ | ||
| 40 | + 'class' => Slug::className(), | ||
| 41 | + 'in_attribute' => 'name', | ||
| 42 | + 'out_attribute' => 'alias', | ||
| 43 | + 'translit' => true | ||
| 44 | + ], | ||
| 45 | ]; | 45 | ]; |
| 46 | } | 46 | } |
| 47 | 47 |
common/modules/product/models/ProductVariant.php
| @@ -34,7 +34,7 @@ class ProductVariant extends \yii\db\ActiveRecord | @@ -34,7 +34,7 @@ class ProductVariant extends \yii\db\ActiveRecord | ||
| 34 | public function rules() | 34 | public function rules() |
| 35 | { | 35 | { |
| 36 | return [ | 36 | return [ |
| 37 | - [['product_id', 'name', 'sku', 'product_unit_id'], 'required'], | 37 | + [['product_id', 'sku', 'product_unit_id'], 'required'], |
| 38 | [['product_id', 'product_unit_id'], 'integer'], | 38 | [['product_id', 'product_unit_id'], 'integer'], |
| 39 | [['price', 'price_old', 'stock'], 'number'], | 39 | [['price', 'price_old', 'stock'], 'number'], |
| 40 | [['name', 'sku'], 'string', 'max' => 255], | 40 | [['name', 'sku'], 'string', 'max' => 255], |
common/modules/rubrication/models/TaxGroup.php
| @@ -15,7 +15,7 @@ use Yii; | @@ -15,7 +15,7 @@ use Yii; | ||
| 15 | * @property string $module | 15 | * @property string $module |
| 16 | * @property boolean $hierarchical | 16 | * @property boolean $hierarchical |
| 17 | * @property string $settings | 17 | * @property string $settings |
| 18 | - * @property boolean is_filter | 18 | + * @property boolean $is_filter |
| 19 | * | 19 | * |
| 20 | * @property TaxGroupToGroup[] $taxGroupToGroups | 20 | * @property TaxGroupToGroup[] $taxGroupToGroups |
| 21 | * @property TaxGroupToGroup[] $taxGroupToGroups0 | 21 | * @property TaxGroupToGroup[] $taxGroupToGroups0 |
| @@ -62,7 +62,7 @@ class TaxGroup extends \yii\db\ActiveRecord | @@ -62,7 +62,7 @@ class TaxGroup extends \yii\db\ActiveRecord | ||
| 62 | return [ | 62 | return [ |
| 63 | [['name', 'module'], 'required'], | 63 | [['name', 'module'], 'required'], |
| 64 | [['description', 'settings'], 'string'], | 64 | [['description', 'settings'], 'string'], |
| 65 | - [['hierarchical'], 'boolean'], | 65 | + [['hierarchical', 'is_filter'], 'boolean'], |
| 66 | [['alias', 'module'], 'string', 'max' => 50], | 66 | [['alias', 'module'], 'string', 'max' => 50], |
| 67 | [['name'], 'string', 'max' => 255], | 67 | [['name'], 'string', 'max' => 255], |
| 68 | [['group_to_category'], 'safe'] | 68 | [['group_to_category'], 'safe'] |
frontend/web/css/concat_all.css
frontend/web/css/style.css
| @@ -549,7 +549,7 @@ padding-left:27px; | @@ -549,7 +549,7 @@ padding-left:27px; | ||
| 549 | .novelty_cont .item .pic{ | 549 | .novelty_cont .item .pic{ |
| 550 | margin-top:24px; | 550 | margin-top:24px; |
| 551 | } | 551 | } |
| 552 | -.novelty_cont .title_item{padding:13px;padding-top:0px;color:#6aa033;margin-top:10px;font-size:15px;line-height: 1.2;} | 552 | +.novelty_cont .title_item{padding:13px;padding-top:0px;color:#6aa033;margin-top:10px;font-size:15px;line-height: 1.2;height: 4em} |
| 553 | .novelty_cont .title_item a{text-decoration:none;color:#6aa033;} | 553 | .novelty_cont .title_item a{text-decoration:none;color:#6aa033;} |
| 554 | .novelty_cont .item .price{ | 554 | .novelty_cont .item .price{ |
| 555 | font-size:20px; | 555 | font-size:20px; |