Commit 4a13b493e058f10726df7f37d468c5a042572f13

Authored by Administrator
1 parent 55ea55f2

big commti

Showing 2 changed files with 17 additions and 16 deletions   Show diff stats
common/config/main.php
@@ -182,6 +182,12 @@ return [ @@ -182,6 +182,12 @@ return [
182 'height' => 110, 182 'height' => 110,
183 ], 183 ],
184 ], 184 ],
  185 + 'product_show'=>[
  186 + 'resize' => [
  187 + 'width' => 342,
  188 + 'height' => 350,
  189 + ],
  190 + ]
185 ] 191 ]
186 ], 192 ],
187 'basket' => [ 193 'basket' => [
frontend/views/catalog/product.php
@@ -45,28 +45,23 @@ FlipclockAsset::register($this); @@ -45,28 +45,23 @@ FlipclockAsset::register($this);
45 <div class="fotorama" data-allowfullscreen="true" data-nav="thumbs" 45 <div class="fotorama" data-allowfullscreen="true" data-nav="thumbs"
46 data-width="342" 46 data-width="342"
47 data-height="350"> 47 data-height="350">
48 - 48 +
49 <?php foreach($product->images as $image) : ?> 49 <?php foreach($product->images as $image) : ?>
50 <a href="<?= $image->imageUrl ?>"> 50 <a href="<?= $image->imageUrl ?>">
51 - <?= ArtboxImageHelper::getImage($image->imageUrl, 'product_trumb',[  
52 - 'alt'=>'test',  
53 - 'title' => 'test2'  
54 - ]) ?> 51 + <?= ArtboxImageHelper::getImage($image->imageUrl, 'product_trumb') ?>
55 </a> 52 </a>
56 <?php endforeach ?> 53 <?php endforeach ?>
57 </div> 54 </div>
58 <?php else : ?> 55 <?php else : ?>
59 - <div class="fotorama" data-allowfullscreen="true" data-nav="thumbs"  
60 - data-width="342"  
61 - data-height="350">  
62 -  
63 - <a href="<?= $product->imageUrl ?>">  
64 - <?= ArtboxImageHelper::getImage($product->imageUrl, 'product_trumb',[  
65 - 'alt'=>'test',  
66 - 'title' => 'test2'  
67 - ]) ?>  
68 - </a>  
69 - 56 + <div class="fotorama" data-allowfullscreen="true" data-nav="thumbs">
  57 +
  58 +
  59 + <div><?= ArtboxImageHelper::getImage($product->imageUrl, 'product_show',[
  60 + 'alt'=>$product->name,
  61 + 'title' => $product->name
  62 + ]) ?></div>
  63 +
  64 +
70 </div> 65 </div>
71 <?php endif ?> 66 <?php endif ?>
72 </div> 67 </div>