+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
-
-
-
-
-
+
-
-
-
-
-
+
+ productOptionGroupCompls as $group) {
+ ?>
+
- parent_id ) || !empty( $model->categories )) {
- ?>
-
+
+
+ getBrands($model);
+ if (!empty($brands)) {
+ ?>
+
-
-
+ parent_id) || !empty($model->categories)) {
?>
-
- -
-
-
- parent_id )) {
- echo Html::a(
- $model->parent->lang->title,
- [
- 'view',
- 'id' => $model->parent_id,
- ]
- );
- } else {
- echo Html::a($model->lang->title, '#');
- }
- ?>
-
-
- parent_id )) {
- foreach ($model->parent->categories as $childCategory) {
- echo Html::tag(
- 'li',
- Html::a(
- $childCategory->lang->title,
- ( $childCategory->id === $model->id ) ? '#' : [
- 'view',
- 'id' => $childCategory->id,
- ]
- ),
- [
- 'class' => ( $childCategory->id === $model->id ) ? 'active' : '',
- ]
- );
- }
- } else {
- foreach ($model->categories as $childCategory) {
- echo Html::tag(
- 'li',
- Html::a(
- $childCategory->lang->title,
- [
- 'view',
- 'id' => $childCategory->id,
- ]
- )
- );
- }
- }
- ?>
-
-
-
-
-
-
-
-
- productOptionGroupCompls as $group) {
+
+
+
+
+
-
+
- -
+
-
+ parent_id)) {
+ echo Html::a(
+ $model->parent->lang->title,
+ [
+ 'view',
+ 'category' => $model->parent->lang->title,
+ ]
+ );
+ } else {
+ echo Html::a($model->lang->title, '#');
+ }
+ ?>
+
-
getBrands($model) as $brand) {
- /**
- * @var Product $product
- * @var Brand $brand
- */
- echo Html::tag(
- 'div',
- Html::a(
- $brand->lang->title,
+ if (!empty($model->parent_id)) {
+ foreach ($model->parent->categories as $childCategory) {
+ echo Html::tag(
+ 'li',
+ Html::a(
+ $childCategory->lang->title,
+ ( $childCategory->id === $model->id ) ? '#' : [
+ 'view',
+ 'category' => $childCategory->lang->title,
+ ]
+ ),
[
- '/category/view',
- 'category' => $model->lang->alias->value,
- 'filter' => $filterHelper->buildLink($brand),
+ 'class' => ( $childCategory->id === $model->id ) ? 'active' : '',
]
- ),
- [
- 'class' => $filterHelper->has(
- $brand->lang->alias->value
- ) ? 'radio-but checked' : 'radio-but',
- ]
- );
+ );
+ }
+ } else {
+ foreach ($model->categories as $childCategory) {
+ echo Html::tag(
+ 'li',
+ Html::a(
+ $childCategory->lang->title,
+ [
+ 'view',
+ 'category' => $childCategory->lang->title,
+ ]
+ )
+ );
+ }
}
?>
-
+
+
+
+
+
+
+
+ lang->title,
+ [
+ '/category/view',
+ 'category' => $model->lang->alias->value,
+ 'filter' => $filterHelper->buildLink($brand),
+ ]
+ ),
+ [
+ 'class' => $filterHelper->has(
+ $brand->lang->alias->value
+ ) ? 'radio-but checked' : 'radio-but',
+ ]
+ );
+ }
?>
-
+
-
+
-
- lang->title; ?>
-
-
-
- options as $option) {
- /**
- * @var Product $product
- */
- echo Html::tag(
- 'div',
- Html::a(
- $option->lang->value,
- [
- '/category/view',
- 'category' => $model->lang->alias->value,
- 'filter' => $filterHelper->buildLink($option),
- ]
- ),
- [
- 'class' => $filterHelper->has(
- $option->lang->alias->value
- ) ? 'radio-but checked' : 'radio-but',
- ]
- );
- }
- ?>
-
-
+
+ productOptionGroupExcls as $group) {
+ ?>
+
+
+ lang->title; ?>
+
+
+
productOptionGroupExcls as $group) {
+ foreach ($group->options as $option) {
+ /**
+ * @var Product $product
+ */
+ echo Html::tag(
+ 'div',
+ Html::a(
+ $option->lang->value,
+ [
+ '/category/view',
+ 'category' => $model->lang->alias->value,
+ 'filter' => $filterHelper->buildLink($option),
+ ]
+ ),
+ [
+ 'class' => $filterHelper->has(
+ $option->lang->alias->value
+ ) ? 'radio-but checked' : 'radio-but',
+ ]
+ );
+ }
?>
-
+
-
+
-
- lang->title; ?>
-
-
-
- options as $option) {
- /**
- * @var Product $product
- */
- echo Html::tag(
- 'div',
- Html::a(
- $option->lang->value,
- [
- '/category/view',
- 'category' => $model->lang->alias->value,
- 'filter' => $filterHelper->buildLink($option),
- ]
- ),
- [
- 'class' => $filterHelper->has(
- $option->lang->alias->value
- ) ? 'radio-but checked' : 'radio-but',
- ]
- );
- }
- ?>
-
-
+
+ variantOptionGroupCompls as $group) {
+ ?>
+
+
+ lang->title; ?>
+
+
+
variantOptionGroupCompls as $group) {
+ foreach ($group->options as $option) {
+ /**
+ * @var Product $product
+ */
+ echo Html::tag(
+ 'div',
+ Html::a(
+ $option->lang->value,
+ [
+ '/category/view',
+ 'category' => $model->lang->alias->value,
+ 'filter' => $filterHelper->buildLink($option),
+ ]
+ ),
+ [
+ 'class' => $filterHelper->has(
+ $option->lang->alias->value
+ ) ? 'radio-but checked' : 'radio-but',
+ ]
+ );
+ }
?>
-
+
-
+
-
- lang->title; ?>
-
-
-
- options as $option) {
- /**
- * @var Product $product
- */
- echo Html::tag(
- 'div',
- Html::a(
- $option->lang->value,
- [
- '/category/view',
- 'category' => $model->lang->alias->value,
- 'filter' => $filterHelper->buildLink($option),
- ]
- ),
- [
- 'class' => $filterHelper->has(
- $option->lang->alias->value
- ) ? 'radio-but checked' : 'radio-but',
- ]
- );
- }
- ?>
-
-
+
+ variantOptionGroupExcls as $group) {
+ ?>
+
+
+ lang->title; ?>
+
+
+
variantOptionGroupExcls as $group) {
+ foreach ($group->options as $option) {
+ /**
+ * @var Product $product
+ */
+ echo Html::tag(
+ 'div',
+ Html::a(
+ $option->lang->value,
+ [
+ '/category/view',
+ 'category' => $model->lang->alias->value,
+ 'filter' => $filterHelper->buildLink($option),
+ ]
+ ),
+ [
+ 'class' => $filterHelper->has(
+ $option->lang->alias->value
+ ) ? 'radio-but checked' : 'radio-but',
+ ]
+ );
+ }
?>
-
+
-
+
-
- lang->title; ?>
-
-
-
- options as $option) {
- /**
- * @var Product $product
- */
- echo Html::tag(
- 'div',
- Html::a(
- $option->lang->value,
- [
- '/category/view',
- 'category' => $model->lang->alias->value,
- 'filter' => $filterHelper->buildLink($option),
- ]
- ),
- [
- 'class' => $filterHelper->has(
- $option->lang->alias->value
- ) ? 'radio-but checked' : 'radio-but',
- ]
- );
- }
- ?>
-
-
+
+
+
+ lang->title; ?>
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- [
- 'class' => 'row products',
- ],
- 'itemOptions' => [
- 'tag' => false,
- ],
- 'layout' => '{items}',
- 'dataProvider' => $dataProvider,
- 'itemView' => function ($model) use ($view) {
+ foreach ($group->options as $option) {
/**
- * @var Product $model
+ * @var Product $product
*/
- return $view->render(
- '_product_item',
+ echo Html::tag(
+ 'div',
+ Html::a(
+ $option->lang->value,
+ [
+ '/category/view',
+ 'category' => $model->lang->alias->value,
+ 'filter' => $filterHelper->buildLink($option),
+ ]
+ ),
[
- 'product' => $model,
+ 'class' => $filterHelper->has(
+ $option->lang->alias->value
+ ) ? 'radio-but checked' : 'radio-but',
]
);
- },
- ]
- );
- echo Html::tag(
- 'div',
- LinkPager::widget(
- [
- 'pagination' => $dataProvider->pagination,
- ]
- ),
- [
- 'class' => 'pages',
- ]
- );
- ?>
-
-
-
-
-
+ }
+ ?>
+
+
+ [
+ 'class' => 'row products',
+ ],
+ 'itemOptions' => [
+ 'tag' => false,
+ ],
+ 'layout' => '{items}',
+ 'dataProvider' => $dataProvider,
+ 'itemView' => function ($model) use ($view) {
+ /**
+ * @var Product $model
+ */
+ return $view->render(
+ '_product_item',
+ [
+ 'product' => $model,
+ ]
+ );
+ },
+ ]
+ );
+ echo Html::tag(
+ 'div',
+ LinkPager::widget(
+ [
+ 'pagination' => $dataProvider->pagination,
+ ]
+ ),
+ [
+ 'class' => 'pages',
+ ]
+ );
+ ?>
+
+
+
+
+