get('seo'); if (!empty($model->product->category)) { if (!empty($model->product->category->parent)) { $this->params[ 'breadcrumbs' ][] = [ 'label' => $model->product->category->parent->lang->title, 'url' => [ '/category/view', 'category' => $model->product->category->parent->lang->alias->value, ], ]; } $this->params[ 'breadcrumbs' ][] = [ 'label' => $model->product->category->lang->title, 'url' => [ '/category/view', 'category' => $model->product->category->lang->alias->value, ], ]; } $this->params[ 'breadcrumbs' ][] = $model->product->lang->title; $this->params[ 'breadcrumbs' ][] = $seo->title; $images = $model->product->images; if (!empty($model->product->image)) { array_unshift($images, $model->product->image); } if (!empty($model->image)) { array_unshift($images, $model->image); } ?>
getPath()) ->fillResize(555, 555) ->renderImage( [ 'class' => 'img-responsive', 'alt' => $model->lang->title, 'title' => $model->lang->title, ] ); } else { echo ImageHelper::set('@frontend/web/img/no-image.png') ->fillResize(555, 555) ->renderImage( [ 'class' => 'img-responsive', 'alt' => $model->lang->title, 'title' => $model->lang->title, ] ); } ?>
product->is('akcia') || $model->product->is('new') || $model->product->is('top')){ ?>
product->is('akcia')) { ?>
АКЦИЯ
product->is('new')) { ?>
НОВОЕ
product->is('top')) { ?>
ТОП
getPath()) // ->fillResize(70, 60) // ->renderImage( // [ // 'class' => 'img-responsive', // 'alt' => $model->lang->title, // 'title' => $model->lang->title, // ] // ), // ImageHelper::set($image->getPath()) // ->fillResize(555, 555) // ->render(), // [ // 'class' => 'thumb', // ] // ), // [ // 'class' => 'col-xs-2', // ] // ); // } // } else { // echo Html::tag( // 'div', // Html::a( // ImageHelper::set('@frontend/web/img/no-image.png') // ->fillResize(70, 60) // ->renderImage( // [ // 'class' => 'img-responsive', // 'alt' => $model->lang->title, // 'title' => $model->lang->title, // ] // ), // ImageHelper::set('@frontend/web/img/no-image.png') // ->fillResize(555, 555) // ->render(), // [ // 'class' => 'thumb', // ] // ), // [ // 'class' => 'col-xs-2', // ] // ); // } // ?> product->video)) { // ?> product->video; ?>

lang->title; ?>

sku; ?>

Цена:price ? : 0; ?> грн  canBuy()) { echo Html::a( Html::tag( 'i', '', [ 'class' => 'fa fa-shopping-cart', ] ) . \Yii::t('app', 'Купить'), '#', [ 'class' => 'btn btn-success add-to-basket', 'data-id' => $model->id, ] ); } else { echo Html::a( \Yii::t('app', 'Нет в наличии'), '#', [ 'class' => 'btn btn-info disabled', 'data-id' => $model->id, ] ); } ?> user->isGuest) { echo Html::button( Html::tag('i', '', [ 'class' => 'fa fa-heart-o' ]), [ 'title' => 'Добавить в избранное', 'data' => [ 'toggle' => 'modal', 'target' => '#login-modal' ], 'class' => 'btn btn-default pull-right', ] ); } elseif (in_array($model->id, \Yii::$app->user->identity->wishlist)) { echo Html::button( Html::tag('i', '', [ 'class' => 'fa fa-heart' ]), [ 'title' => 'Убрать из избранного', 'data' => [ 'product' => $model->product->id, 'variant' => $model->id, 'user' => \Yii::$app->user->identity->getId(), 'url' => Url::to([ 'product/wishlist-rm' ]), ], 'class' => 'wishlist-rm btn btn-success pull-right', ] ); } else { echo Html::button( Html::tag('i', '', [ 'class' => 'fa fa-heart-o' ]), [ 'title' => 'Добавить в избранное', 'data' => [ 'product' => $model->product->id, 'variant' => $model->id, 'user' => \Yii::$app->user->identity->getId(), 'url' => Url::to([ 'product/wishlist-add' ]), ], 'class' => 'wishlist-add btn btn-success pull-right', ] ); } ?>


canBuy()) { echo Html::a( Html::icon( 'phone', [ 'prefix' => 'fa fa-', ] ) . \Yii::t('app', 'Купить в один клик'), '#', [ 'data' => [ 'toggle' => 'modal', 'target' => '#oneclick-modal', ], 'class' => 'btn btn-template-main', ] ); } ?>
product); $productVariantGroups = $helper->getGroups(); foreach ($productVariantGroups as $productVariantGroup) { ?>

lang->title . ": "; ?>

getOptions() as $option) { /** * @var \artbox\catalog\models\VariantOptionExcl $productVariantOptionModel */ $productVariantOptionModel = $option[ 'option' ]; /** * @var \frontend\widgets\VariantHelper $variantHelper */ $variantHelper = $option[ 'variants' ]; $variant = $variantHelper->getVariant(); /** * @var \artbox\core\models\Image $img */ $img = $productVariantOptionModel->image ? : $variant->image ? : null; echo Html::a( Html::tag( 'div', $img ? ImageHelper::set($img->getPath()) ->fillResize(90, 55) ->renderImage( [ 'alt' => $productVariantOptionModel->lang->value, 'title' => $productVariantOptionModel->lang->value, 'class' => 'product-variant-group-option-img', ] ) : $productVariantOptionModel->lang->value, [ 'class' => 'product-variant-group-option', ] ), [ 'variant/view', 'id' => $variant->id, ] ); } ?>

lang->description ? : \Yii::t('app', 'Нет описания'); ?>

lang->title, [ 'class' => 'td-title' ] ) . Html::tag( 'td', implode( ', ', ArrayHelper::getColumn( $optionGroup->currentOptions, 'lang.value' ) ) ) ); } } ?>