Commit 2583aa9d9be28c1aae48f97d521502eb5dcf303d
1 parent
b15fac82
Tmp disabled ajax-pager element
Showing
2 changed files
with
3 additions
and
2 deletions
Show diff stats
common/modules/product/models/Category.php
@@ -82,11 +82,12 @@ class Category extends \yii\db\ActiveRecord | @@ -82,11 +82,12 @@ class Category extends \yii\db\ActiveRecord | ||
82 | [['name'], 'required'], | 82 | [['name'], 'required'], |
83 | [['parent_id', 'depth', 'category_name_id', 'product_unit_id'], 'integer'], | 83 | [['parent_id', 'depth', 'category_name_id', 'product_unit_id'], 'integer'], |
84 | [['path', 'meta_desc', 'seo_text'], 'string'], | 84 | [['path', 'meta_desc', 'seo_text'], 'string'], |
85 | - [['image', 'meta_title'], 'string', 'max' => 255], | 85 | + [['meta_title'], 'string', 'max' => 255], |
86 | [['meta_robots'], 'string', 'max' => 50], | 86 | [['meta_robots'], 'string', 'max' => 50], |
87 | [['alias', 'name'], 'string', 'max' => 250], | 87 | [['alias', 'name'], 'string', 'max' => 250], |
88 | [['populary'], 'boolean'], | 88 | [['populary'], 'boolean'], |
89 | [['group_to_category'], 'safe'], | 89 | [['group_to_category'], 'safe'], |
90 | + // [['image'], 'file', 'skipOnEmpty' => false, 'extensions' => 'png, jpg, gif'], | ||
90 | // [['product_unit_id'], 'exist', 'skipOnError' => true, 'targetClass' => ProductUnit::className(), 'targetAttribute' => ['product_unit_id' => 'product_unit_id']], | 91 | // [['product_unit_id'], 'exist', 'skipOnError' => true, 'targetClass' => ProductUnit::className(), 'targetAttribute' => ['product_unit_id' => 'product_unit_id']], |
91 | ]; | 92 | ]; |
92 | } | 93 | } |
frontend/views/catalog/products.php
@@ -247,7 +247,7 @@ $this->params['breadcrumbs'][] = $category->name; | @@ -247,7 +247,7 @@ $this->params['breadcrumbs'][] = $category->name; | ||
247 | 247 | ||
248 | <?php if ($pages->totalCount > $pages->pageSize) :?> | 248 | <?php if ($pages->totalCount > $pages->pageSize) :?> |
249 | <!-- LOAD MORE BUTTON --> | 249 | <!-- LOAD MORE BUTTON --> |
250 | - <button class="load_more_btn">Загрузить еще <?= $per_page?> товара</button> | 250 | + <!--button class="load_more_btn">Загрузить еще <?= $per_page?> товара</button--> |
251 | 251 | ||
252 | <div class="show_pages"> | 252 | <div class="show_pages"> |
253 | Страница: | 253 | Страница: |