params[ 'seo' ][ 'key' ] = $category->name; $this->params[ 'seo' ][ 'fields' ][ 'name' ] = $product->fullname; $this->params[ 'seo' ][ 'h1' ] = !empty( Seo::widget([ 'row' => 'h1' ]) ) ? Seo::widget([ 'row' => 'h1' ]) : $product->fullname; $this->title = $product->fullname; $this->params[ 'breadcrumbs' ][] = [ 'label' => $category->name, 'url' => [ 'catalog/category', 'category' => $category, ], ]; $this->params[ 'breadcrumbs' ][] = $product->fullname . ' #' . $product->enabledVariants[ 0 ]->sku; ?>
variant->price_old ){?>
|
Купить | */ ?> |
под заказ |
|
||
variant->price_old){?>
Узнать о снижении цены
*/ ?>
где купить?
*/
?>
нашли дешевле?
*/
?>
|
|||
variant->price > 0 && $product->variant->stock > 0) {
?>
Orders::SCENARIO_QUICK,
]);
$form = ActiveForm::begin([
'id' => 'quickbuy-form',
]);
echo Html::hiddenInput('product_variant_id', $product->variant->product_variant_id);
echo $form->field($quickbuy, 'phone')
->widget(MaskedInput::className(), [
'mask' => '+38(999)999-99-99',
'options' => [
'type' => 'tel',
'class' => 'input phone',
],
])
->label(false);
echo Html::submitInput('Заказать в 1 клик', [ 'class' => 'btn' ]);
$form::end();
?>
|
|||
averageRating )) { ?> |
ID | = $product->variant->sku ?> |
Бренд | = $product->brand->name ?> |
= $group->name ?> | _options as $option) : ?> = $option->ValueRenderHTML ?> |