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 | 85 | |
| 86 | 86 | <?php foreach($basket_mods as $i=>$item):?> |
| 87 | 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 | 89 | <?= \common\components\artboximage\ArtboxImageHelper::getImage($item->imageUrl, 'product_basket')?> |
| 90 | 90 | </a> |
| 91 | 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 | 93 | <p>Код: <?=$item->sku?>, цвет: <?=$item->name?></p> |
| 94 | 94 | <?php echo $form->field($item,'['.$i.']id')->hiddenInput()->label(false); ?> |
| 95 | 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 | 5 | <li class="item"> |
| 6 | 6 | <div class="boxitem"> |
| 7 | 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 | 9 | <?= \common\components\artboximage\ArtboxImageHelper::getImage($product->imageUrl, 'list')?> |
| 10 | 10 | </a> |
| 11 | 11 | </div> |
| ... | ... | @@ -24,7 +24,8 @@ use yii\helpers\Url; |
| 24 | 24 | <?php endif?> |
| 25 | 25 | <a href="<?= Url::to([ |
| 26 | 26 | 'catalog/product', |
| 27 | - 'product' => $product]) | |
| 27 | + 'product' => $product, | |
| 28 | + '#' => 'm' .$product->variant->product_variant_id]) | |
| 28 | 29 | ?>" class="name"><?= $product->fullname ?> |
| 29 | 30 | </a> |
| 30 | 31 | ... | ... |