Commit e6ace78f34cc27ad514b7697a455eb4e7fc96e4d
1 parent
092235f0
image size
Showing
2 changed files
with
5 additions
and
4 deletions
Show diff stats
frontend/views/basket/index.php
@@ -85,11 +85,11 @@ $('#orders-delivery input[type=\"radio\"]').click(function(){ | @@ -85,11 +85,11 @@ $('#orders-delivery input[type=\"radio\"]').click(function(){ | ||
85 | 85 | ||
86 | <?php foreach($basket_mods as $i=>$item):?> | 86 | <?php foreach($basket_mods as $i=>$item):?> |
87 | <div class="basket_item"> | 87 | <div class="basket_item"> |
88 | - <a href="<?= Url::to(['catalog/product', 'product' => $item->product]) ?>"> | 88 | + <a href="<?= Url::to(['catalog/product', 'product' => $item->product,'#' => 'm' .$item->product_variant_id]) ?>"> |
89 | <?= \common\components\artboximage\ArtboxImageHelper::getImage($item->imageUrl, 'product_basket')?> | 89 | <?= \common\components\artboximage\ArtboxImageHelper::getImage($item->imageUrl, 'product_basket')?> |
90 | </a> | 90 | </a> |
91 | <div class="info"> | 91 | <div class="info"> |
92 | - <a href="<?= Url::to(['catalog/product', 'product' => $item->product]) ?>" class="link2"><?=$item->product_name?></a> | 92 | + <a href="<?= Url::to(['catalog/product', 'product' => $item->product,'#' => 'm' .$item->product_variant_id]) ?>" class="link2"><?=$item->product_name?></a> |
93 | <p>Код: <?=$item->sku?>, цвет: <?=$item->name?></p> | 93 | <p>Код: <?=$item->sku?>, цвет: <?=$item->name?></p> |
94 | <?php echo $form->field($item,'['.$i.']id')->hiddenInput()->label(false); ?> | 94 | <?php echo $form->field($item,'['.$i.']id')->hiddenInput()->label(false); ?> |
95 | <?php echo $form->field($item,'['.$i.']product_name')->hiddenInput()->label(false); ?> | 95 | <?php echo $form->field($item,'['.$i.']product_name')->hiddenInput()->label(false); ?> |
frontend/views/catalog/product_item.php
@@ -5,7 +5,7 @@ use yii\helpers\Url; | @@ -5,7 +5,7 @@ use yii\helpers\Url; | ||
5 | <li class="item"> | 5 | <li class="item"> |
6 | <div class="boxitem"> | 6 | <div class="boxitem"> |
7 | <div class="pixbox"> | 7 | <div class="pixbox"> |
8 | - <a href="<?= Url::to(['catalog/product', 'product' => $product]) ?>"> | 8 | + <a href="<?= Url::to(['catalog/product', 'product' => $product,'#' => 'm' .$product->variant->product_variant_id]) ?>"> |
9 | <?= \common\components\artboximage\ArtboxImageHelper::getImage($product->imageUrl, 'list')?> | 9 | <?= \common\components\artboximage\ArtboxImageHelper::getImage($product->imageUrl, 'list')?> |
10 | </a> | 10 | </a> |
11 | </div> | 11 | </div> |
@@ -24,7 +24,8 @@ use yii\helpers\Url; | @@ -24,7 +24,8 @@ use yii\helpers\Url; | ||
24 | <?php endif?> | 24 | <?php endif?> |
25 | <a href="<?= Url::to([ | 25 | <a href="<?= Url::to([ |
26 | 'catalog/product', | 26 | 'catalog/product', |
27 | - 'product' => $product]) | 27 | + 'product' => $product, |
28 | + '#' => 'm' .$product->variant->product_variant_id]) | ||
28 | ?>" class="name"><?= $product->fullname ?> | 29 | ?>" class="name"><?= $product->fullname ?> |
29 | </a> | 30 | </a> |
30 | 31 |