Blame view

frontend/views/catalog/product.php 36.5 KB
8072159c   Alex Savenko   create proj
1
2
3
4
5
6
7
8
  <?php

  /**

   * @var $product Product

   * @var $this View

   */

      use common\components\artboximage\ArtboxImageHelper;

      use common\models\Orders;

      use common\modules\product\models\Product;

175cad24   Alexey Boroda   -Similar started
9
      use common\modules\product\widgets\similarProducts;

8072159c   Alex Savenko   create proj
10
11
12
13
14
15
      use frontend\assets\FotoramaAsset;

      use frontend\widgets\Seo;

      use common\modules\comment\widgets\CommentWidget;

      use yii\bootstrap\ActiveForm;

      use yii\bootstrap\Html;

      use yii\helpers\Url;

8072159c   Alex Savenko   create proj
16
17
18
19
20
      use yii\web\View;

      use yii\widgets\MaskedInput;

      use frontend\assets\FlipclockAsset;

      FlipclockAsset::register($this);

      FotoramaAsset::register($this);

53b71cf4   Yarik   Synonyms
21
      $this->title = $product->fullname;

8072159c   Alex Savenko   create proj
22
23
  

  

53b71cf4   Yarik   Synonyms
24
25
26
      $this->params[ 'seo' ][ Seo::TITLE ] = $product->fullname .' купить в Киеве, Украине недорого  - Лінія Світла';

      $this->params[ 'seo' ][ 'fields' ][ 'name' ] = $product->fullname;

      $this->params[ 'seo' ][ 'h1' ] =  $product->fullname;

24a7e405   Alexey Boroda   -Seo widget fix a...
27
28
29
      $this->params[ 'seo' ][ 'key' ] =  $product->category->name;

      

      

8072159c   Alex Savenko   create proj
30
31
32
33
34
35
36
37
38
39
40
41
      $this->params[ 'breadcrumbs' ][] = [

          'label' => $category->name,

          'url'   => [

              'catalog/category',

              'category' => $category,

          ],

      ];

  

      $this->params[ 'breadcrumbs' ][] = [

          'label' => $product->brand->name,

          'url'   => ['catalog/category', 'category' => $category, 'filters' => ['brands' => [$product->brand->alias]]],

      ];

53b71cf4   Yarik   Synonyms
42
      $this->params[ 'breadcrumbs' ][] = $product->fullname . ' #' . $product->variant->sku;

8cfd1b8a   Alex Savenko   remarketing
43
44
  

      $this->params['remarketing']['type'] = 'offerdetail';

f3bc9c4b   Alex Savenko   remarketing
45
      $this->params['remarketing']['id'] = $product->variant->product_variant_id;

8cfd1b8a   Alex Savenko   remarketing
46
      $this->params['remarketing']['price'] = $product->getPrice();

e261c537   Alex Savenko   500 images fix
47
      

8072159c   Alex Savenko   create proj
48
  ?>

8072159c   Alex Savenko   create proj
49
50
51
52
  <div class="wrapper white item_container">

      <div class="container">

          <div class="product_detail" itemscope itemtype="http://schema.org/Product">

              

563a6d54   Alexey Boroda   -H1 fix
53
54
55
56
57
58
59
              <h1 itemprop="name"><?php

                  if (empty(Seo::widget([ 'row' => 'h1' ]))) {

                    echo $product->fullname;

                  } else {

                    echo Seo::widget([ 'row' => 'h1' ]);

                  }

                  ?></h1>

8072159c   Alex Savenko   create proj
60
61
62
              <div class="product_code">Код:<?= $product->variant->sku ?></div>

              <div class="clearfix"></div>

              <!-- Image part -->

8072159c   Alex Savenko   create proj
63
64
65
66
67
68
69
70
              <div class="img_part">

                  

                  <div class="position">

                      <div class="img_part_big">

                          <?php if(!empty( $product->images )) : ?>

                              <div class="fotorama" data-allowfullscreen="true" data-nav="thumbs"

                                   data-width="342"

                                   data-height="350">

8072159c   Alex Savenko   create proj
71
72
73
74
75
76
77
                                  <?php foreach($product->images as $image) : ?>

                                      <a href="<?= $image->imageUrl ?>">

                                          <?= ArtboxImageHelper::getImage($image->imageUrl, 'product_show') ?>

                                      </a>

                                  <?php endforeach ?>

                              </div>

                          <?php else : ?>

53b71cf4   Yarik   Synonyms
78
                              <a href="<?= $product->imageUrl ?>" data-lightbox="image-1" data-title="<?= $product->fullname;?>">

e261c537   Alex Savenko   500 images fix
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
                                  <?php

                                      try {

                                          echo ArtboxImageHelper::getImage($product->imageUrl, 'product_show',[

                                              'alt'=>$product->fullname,

                                              'title' => $product->fullname,

                                              'itemprop' => 'image'

                                          ]);

                                      } catch(Exception $exception) {

                                          echo ArtboxImageHelper::getImage('/storage/no_photo.png', 'product_show',[

                                              'alt'=>$product->fullname,

                                              'title' => $product->fullname,

                                              'itemprop' => 'image'

                                          ]);

                                      }

                                  ?>

8072159c   Alex Savenko   create proj
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
                                  </a>

  

                          <?php endif ?>

                      </div>

                      

                      <div class="clearfix"></div>

                      

                      

                      <ul class="detail_main_tabs">

                          <li class="properties" data-target="characteristics">

                              <a href="#characteristics">

                                  <span class="text">Характеристики и описание</span>

                              </a>

                              <span class="icon"></span>

                              <span class="arr"></span>

                          </li>

                          

                          <li class="product_collection" data-target="collection">

                              <a href="#collection">

6e95335c   Alexey Boroda   -Product card opt...
113
                                  <span class="text">Рекомендуем специально для вас</span>

8072159c   Alex Savenko   create proj
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
                              </a>

                              <span class="icon"></span>

                              <span class="arr"></span>

                          </li>

                          

                          <li class="comments" data-target="reviews">

                              <a href="#reviews">

                                  <span class="text">Написать отзыв</span>

                              </a>

                              <span class="icon"></span>

                              <span class="arr"></span>

                          </li>

                      </ul>

                      

                      <div class="floating_helper_block_wrapper">

                          <div class="floating_helper_block" style="visibility: visible; opacity: 1;" itemprop="offers" itemscope itemtype="http://schema.org/Offer">

                              <table>

                                  <tbody>

                                  <tr>

                                      <td>

6e95335c   Alexey Boroda   -Product card opt...
134
                                        Цена&nbsp;

8072159c   Alex Savenko   create proj
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
                                          <?php if( $product->variant->price_old ){?>

                                              <strike><span><span id='old_cost'><?= $product->variant->price_old ?></span></span> грн.</strike>

                                          <?php }?>

  

                                          <span class="cost"><span itemprop="price"><span id='cost'><?= $product->variant->price ?></span></span> <span class="valute">грн.</span></span>

                                          <meta itemprop="priceCurrency" content="UAH">

                                      </td>

                                      <td>

                                          <!-- Купить -->

                                          <?php if($product->variant->status != 1)

                                          {?>

                                              <a lang="5892" class="btn btnBuy buy_button btn-large1" data-id="<?php echo $product->variant->product_variant_id; ?>" data-toggle="modal" data-target="#buyForm">Купить</a>

                                          <?php } else {?>

                                              <a  href="#" style="background-color:dimgrey; background-image:linear-gradient(to bottom, #9d9fa0, #abafb2);cursor:default !important;color:#fff!important;box-shadow: none !important;border-top: 1px solid #256caf !important;border-bottom: 1px solid #256caf !important;" class="btn btn-large btn-default " data-id="<?php echo $product->variant->product_variant_id; ?>" >снят с производства</a>

                                          <?php } ?>

  

                                      </td>

                                      <td>

                                          <?php

                                              /* Compare and favorites buttons to be done

                                              ?>

                                              <ul class="wishlike_block ul">

                                                  <li class="compare">

                                                      <a class="compare compare_href" name="5892" href="javascript:return false;">К сравнению</a>

                                                      <span class="icon"></span>

                                                  </li>

                                                  <div class="clearfix"></div>

                                                  <li class="like">

                                                      <a data-toggle="modal" data-target="#myWishlist" href="#">В избранное</a>

                                                      <span class="icon"></span>

                                                  </li>

                                              </ul>

                                              */

                                          ?>

                                      </td>

                                  </tr>

                                  </tbody>

                              </table>

                              

                              <span class="arr"></span>

                              <div class="clearfix"></div>

                          </div>

                      </div>

                  </div>

              </div><!-- EOF Image part -->

              

              <!-- Info table -->

  

              <div class="info" style="height: auto; opacity: 1;">

  

  

                  <table class="info_table">

                      <colgroup>

                          <col style="width: 280px;">

                          <col style="width: 35px;">

                          <col>

                      </colgroup>

  

                      <tbody>

                      <tr>

                          <?php foreach($product->events as $event):?>

                              <?php if(!empty($event->end_at) && $event->isActive()):?>

de87912f   Виталий   -collection
197
                                  <div class="event_block new_ev_bl">

8072159c   Alex Savenko   create proj
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
  

                                      <div class="event_title"> <?=  Html::a('Акция!!! '.$event->name,Url::to(['event/show','alias'=>$event->alias]))?></div>

                                      <div class="event_time">До конца осталось:</div>

                                      <div class="clock_<?= $event->primaryKey ?> clock_product_first "></div>

                                          <?php

                                              $js = "

                                              var clock;

  

                                              clock = new FlipClock($('.clock_$event->primaryKey'), {

                                                  clockFace: 'DailyCounter',

                                                  language: 'ru',

                                                  classes: {

                                                      active: 'flip-clock-active',

                                                      before: 'flip-clock-before',

                                                      divider: 'flip-clock-divider',

                                                      dot: 'flip-clock-dot',

                                                      label: 'flip-clock-label',

                                                      flip: 'flip',

                                                      play: 'play',

                                                      wrapper: 'flip-clock-wrapper'

                                                  },

                                              });

  

                                              clock.setTime( ".(strtotime($event->end_at) - strtotime(date('Y-m-d H:i:s'))).");

                                              clock.setCountdown(true);

                                              clock.start();

                                              ";

                                          $this->registerJs($js,View::POS_LOAD)

                                          ?>

  

  

                                  </div>

                              <?php endif; ?>

                          <?php endforeach; ?>

                      </tr>

                      <tr>

                          <td class="left_count available">

                              <?php if($product->variant->status == 1){?>

                                  снят с производства

ff547766   Alexey Boroda   wrong status fixed
237
238
                              <?php } elseif($product->variant->stock > 0) {?>

                                в наличии

776dd7a1   Alexey Boroda   -Added status 'wa...
239
240
                              <?php } elseif($product->variant->status == 2) {?>

                                  в ожидании

8072159c   Alex Savenko   create proj
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
                              <?php } else {?>

                                  под заказ

                              <?php } ?>

                          </td>

                          <td rowspan="2" class="spacer">&nbsp;</td>

                          <td class="right_block" rowspan="2">

                              <table>

                                  <tbody>

                                  <tr>

                                      <td class="warranty_block">

                                          <div class="">

                                              <ul class="ul">

                                                  <li class="delivery">

                                                      <div class="title">Быстрая доставка</div>

                                                      <div class="descr">

                                                          <p>В любой уголок

                                                              <span class="strong black">Украины:</span><br>

                                                              — Самовывоз Новая Почта - 55 грн.<br>

                                                              — Курьер Новая Почта - 88 грн.<br>

                                                              — Курьер «ИнТайм» - 60 грн.</p>

                                                          <?php if($product->variant->price >= 1000){?>

                                                          <p>

                                                              <span class="strong black">Киев</span>:<br>

                                                              — Курьер - <s>50 грн.</s>

                                                              <span class="bold black up">бесплатно!</span>

                                                              <span class="star_info">*</span><br>

                                                              — Самовывоз -

                                                              <span class="up bold black">бесплатно!</span><br>

                                                              — Пункт Новой Почты - <s>55 грн.</s>

                                                              <span class="bold black up">бесплатно!</span>

                                                              <span class="star_info">*</span>

                                                          </p>

                                                          <?php } else {?>

                                                              <p>

                                                                  <span class="strong black">Киев</span>:<br>

                                                                  — Курьер - 50 грн

                                                                  <span class="star_info">*</span><br>

                                                                  — Самовывоз -

                                                                  <span class="up bold black">бесплатно!</span><br>

                                                                  — Пункт Новой Почты - 55 грн.

                                                                  <span class="star_info">*</span>

                                                              </p>

                                                          <?php }?>

                                                          <p>

                                                              <span class="star_info">* Стоимость расчитана для оформляемого заказа</span>

                                                          </p>

                                                          <span class="icon"></span>

                                                      </div>

                                                  </li>

                                                  <li class="product_back">

                                                      <div class="title">14 дней на обмен</div>

                                                      <div class="descr">без лишних вопросов. Почитайте

                                                          <span class="ajax_link" data-toggle="modal" data-target="#returnСonditions" onclick="">условия возврата</span>

                                                      </div>

                                                      <span class="icon"></span>

                                                  </li>

                                                  <li class="warranty">

                                                      <div class="title">12 месяцев гарантии</div>

                                                      <div class="descr">официальной от производителя</div>

                                                      <span class="icon"></span>

                                                  </li>

                                                  <li>

f42abee0   Alex Savenko   УСЛОВИЯ ДОСТАВКИ
303
                                                      <div class="title">Условия доставки

53b71cf4   Yarik   Synonyms
304
                                                          <?= $product->fullname; ?>

8072159c   Alex Savenko   create proj
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
                                                          : Киев и вся Украина

                                                      </div>

                                                      <div class="descr">

                                                          Лінія світла - электронный магазин, который обеспечит доставку товаров раздела - люстра Элстед жителям городов: Херсон, а так же др. города Украины.

                                                      </div>

                                                  </li>

                                              </ul>

                                          </div>

                                      </td>

                                  </tr>

                                  </tbody>

                              </table>

                          </td>

                      </tr>

                      <tr>

                          <td class="price_block">

                              <div class="event_info">

                                  <div class="events">

e1a6fc48   Administrator   Ntr
323
                                      <?php     $top = 90; foreach($product->events as $event):?>

8e9c76da   Administrator   Ntr
324
                                          <?php if(!empty($event->banner) && $event->isActive()):

39fb52c1   Administrator   event link fix
325
326
327
328
329
330
331
                                              if(!empty($event->percent)){

                                                  $url = Url::to(['event/sale','percent'=>$event->percent]);

                                              } else if(!empty($event->alias)){

                                                  $url =  Url::to(['event/show','alias'=>$event->alias]);

                                              } else {

                                                  continue;

                                              }

e1a6fc48   Administrator   Ntr
332
  

8e9c76da   Administrator   Ntr
333
                                              ?>

086e9a75   Administrator   event link fix
334
                                              <?=  Html::a(\common\components\artboximage\ArtboxImageHelper::getImage($event->getImageUrl('banner'), 'banner_list'),$url,[

97e1d98c   Administrator   Ntr
335
                                                      'style' =>"top:-{$top}px;"

8e9c76da   Administrator   Ntr
336
337
                                              ]);

  

97e1d98c   Administrator   Ntr
338
                                              $top = $top - 30; ?>

8072159c   Alex Savenko   create proj
339
340
341
342
343
344
345
346
347
348
                                          <?php endif; ?>

                                      <?php endforeach; ?>

                                  </div>

                              </div>

                              <div class="price_block_container">

  

  

                                  <div class="price">

                                              <?php if($product->variant->price_old){?>

                                              <span class="main">

8072159c   Alex Savenko   create proj
349
350
351
352
353
                                                  <span class="price"><s><?= $product->variant->price_old ?></s></span>

                                                  <span class="currency">&nbsp;грн.</span>

                                              </span>

                                              <?php }?>

                                              <span class="main">

180b4b76   Alex Savenko   "Цена" карточка т...
354
                                                  <span class="price_prefix">Цена</span>

8072159c   Alex Savenko   create proj
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
                                                  <span class="price"><?= $product->variant->price ?></span>

                                                  <span class="currency">&nbsp;грн.</span>

                                              </span>

                                  </div>

                                  

                                  <div class="follow_price">

                                      <?php /* Lower price notify

                                              <a href="#" onclick="" data-toggle="modal" data-target="#price_drop">Узнать о снижении цены</a>

                                               */ ?>

                                  </div>

                                  

                                  <div class="buy_button">

                                      <?php if($product->variant->status != 1){?>

                                          <a href="#" class="btn btn-large buy_button" data-toggle="modal" data-id="<?php echo $product->variant->product_variant_id; ?>" data-target="#buyForm" lang="5892">Купить</a>

                                      <?php }else { ?>

                                          <a href="#"  style="background-color:dimgrey; background-image:linear-gradient(to bottom, #9d9fa0, #abafb2);cursor:default !important;color:#fff!important;box-shadow: none !important;border-top: 1px solid #256caf !important;border-bottom: 1px solid #256caf !important;" class="btn btn-large btn-default "  data-id="<?php echo $product->variant->product_variant_id; ?>" >снят с производства</a>

                                      <?php } ?>

                                      <div class="clearfix"></div>

                                  </div>

  

                                  <div>

                                      <div class="payment_visa">

                                          Оплатить

                                          <a href="/text/oplata" target="_blank">

                                              <span class="visa" ></span>

                                          </a>

                                      </div>

                                      <div class="clearfix"></div>

                                  </div>

                                  <?php if($product->variant->status != 1){?>

                                      <div class="follow_price">

                                          <a href="#" data-toggle="modal" data-target="#where_buy">где купить?</a>

                                      </div>

                                  <?php } ?>

  

                                  

                                  <div class="follow_price">

                                      <?php

                                          /* Find cheaper form

                                          ?>

                                          <a href="#" data-toggle="modal" data-target="#found_cheaper">нашли дешевле?</a>

                                          */

                                      ?>

                                  </div>

                              

                              </div>

                              <?php

                                  /*

                                  ?>

                                  <ul class="wishlike_block ul  hidden">

                                      <li class="compare">

                                          <a class="compare compare_href" name="5892" href="javascript:return false;">К сравнению</a>

                                          <span class="icon"></span>

                                      </li>

                                      <li class="like">

                                          <a data-toggle="modal" data-target="#myWishlist" class="like" href="#">В избранное</a>

                                          <span class="icon"></span>

                                      </li>

                                  </ul>

                                  */

                              ?>

                          </td>

                      </tr>

                      

                      <tr>

                          <td>

                              <?php

                                  if($product->variant->status != 1) {

                                      ?>

                                      <div class="fast_order_form">

                                          <div class="error_text"></div>

                                          <?php

                                              $quickbuy = new Orders([

                                                  'scenario' => 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();

                                          ?>

                                          <div class="clearfix"></div>

                                      </div>

                                      <?php

                                  }

                              ?>

                          </td>

                      </tr>

                      

                      <tr>

                          <td>

                              <?php

                                  if(!empty( $product->averageRating )) {

                                      ?>

                                      <div class="rating" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">

                                          <div class="rateit" data-rateit-value="<?php echo $product->averageRating->value; ?>" data-rateit-ispreset="true" data-rateit-readonly="true"></div>

                                          рейтинг: <span id="product_rate_avg" itemprop="ratingValue"><?=$product->averageRating->value?></span>&nbsp;&nbsp;

                                          голосов: <span id="product_vote_count" itemprop="ratingCount">

                                              <?php

                                                  echo count($product->comments);

                                              ?>

                                              </span>

                                          <span class="rating_description" id="rating_description"></span>

                                      </div>

                                      <?php

                                  }

                              ?>

                          </td>

                          <td></td>

                      </tr>

                      </tbody>

                  </table>

                  

                  <div class="clearfix"></div>

                  

                  

                  <div class="detail_tabs_content">

  

                      <div class="clear properties tab_div">

                          <h2 id="characteristics">

                              Характеристики:

                          </h2>

                          

                          <!-- Nav tabs -->

                          <ul class="nav nav-tabs property_show_tabs" role="tablist">

                              <li role="presentation" class="active">

                                  <a href="#tab1" aria-controls="home" role="tab" data-toggle="tab">

                                      <span>Все характеристики</span>

                                  </a>

                              </li>

                              <li role="presentation">

                                  <a href="#tab2" aria-controls="profile" role="tab" data-toggle="tab">

                                      <span style="color:#909090">Описание</span>

                                  </a>

                              </li>

                          </ul>

                          

                          <!-- Tab panes -->

                          <div class="tab-content">

                              <div role="tabpanel" class="tab-pane active" id="tab1">

                                  

                                  <table>

                                      <tbody>

                                      <tr class="full short gray">

                                          <td class="name">ID</td>

                                          <td class="value"><?= $product->variant->sku ?> </td>

                                      </tr>

                                      <tr class="full short">

                                          <td class="name">Бренд</td>

9d0ce9e2   Alexey Boroda   -After merge
514
                                          <td class="value"><?php

b2871546   Alexey Boroda   -Product card cro...
515
516
517
518
519
520
521
522
523
                                                  echo !empty($product->brand) ? Html::a($product->brand->name, [

                                            'catalog/category',

                                            'category' => $category,

                                            'filters' => [

                                              'brands' => [

                                                $product->brand->alias

                                              ]

                                            ]

                                              ]) : '';

9d0ce9e2   Alexey Boroda   -After merge
524
                                              ?></td>

8072159c   Alex Savenko   create proj
525
                                      </tr>

1ac2e1aa   Alexey Boroda   -Characteristics ...
526
527
                                      <?php foreach($product->getActiveProperties($category->category_id) as $group) {

                                        ?>

8072159c   Alex Savenko   create proj
528
529
                                          <tr class="full short gray">

                                              <td class="name"><?= $group->name ?></td>

1ac2e1aa   Alexey Boroda   -Characteristics ...
530
531
532
                                              <td class="value">

                                                  <?php

                                                      foreach($group->_options as $option) {

8b0f8819   Alexey Boroda   -Ad hoc updated
533
                                                        if ($group->is_filter && preg_match("/^.*(назначение|подразделы|стиль|тип\sисточника|тип\sнастенного|тип\sпотолочного|вид|тип\sлампочки|тип\sуличного|тип\sточечного).*$/iu", $group->name)) {

b2871546   Alexey Boroda   -Product card cro...
534
535
536
537
538
539
540
541
542
543
544
                                                          echo Html::a('&nbsp;' . $option->ValueRenderHTML,

                                                                       [

                                                                           'catalog/category',

                                                                           'category' => $category,

                                                                           'filters' => [

                                                                               $group->alias => [

                                                                                   $option->alias

                                                                               ]

                                                                           ]

                                                                       ]);

                                                        } else {

1ac2e1aa   Alexey Boroda   -Characteristics ...
545
                                                          echo '&nbsp;', $option->ValueRenderHTML;

b2871546   Alexey Boroda   -Product card cro...
546
                                                        }

1ac2e1aa   Alexey Boroda   -Characteristics ...
547
548
549
                                                      }

                                                       ?>

                                              </td>

8072159c   Alex Savenko   create proj
550
                                          </tr>

1ac2e1aa   Alexey Boroda   -Characteristics ...
551
                                      <?php } ; ?>

8072159c   Alex Savenko   create proj
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
                                      

                                      </tbody>

                                  </table>

                              </div>

                              <div role="tabpanel" class="tab-pane" id="tab2">

                                  

                                  <div class="block-100">

                                      <?= $product->description ?>

                                  </div>

                              

                              </div>

                          </div>

                          

                          <div class="clearfix"></div>

  

8149b4d7   Alexey Boroda   -Similar products...
567
568
569
570
571
572
                      

                       <?php

                       echo similarProducts::widget([

                         'product' => $product,

                                                    ]);

                       ?>

8072159c   Alex Savenko   create proj
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
  

                          <div class="clearfix"></div>

                          <br/>

                          <h2 id="reviews">

                              Отзывы

                          </h2>

                          <div class="comment-wrapper comments comments_block" style="padding-bottom:25px">

                              <?php

                                  echo CommentWidget::widget([

                                      'model' => $product,

                                  ]);

                              ?>

                              <div class="both"></div>

                          </div>

                      </div>

                  </div>

              </div>

              <!-- EOF Info table -->

          </div>

      </div>

  </div>

  <div class="clearfix"></div>

  <div class="modal fade" id="where_buy" tabindex="-1" role="dialog" aria-labelledby="myModalLabel44">

      <div class="modal-dialog text-dialog" role="document">

          <div class="modal-content">

  

              <div class="modal-header">

                  <button type="button" class="close" data-dismiss="modal" aria-label="Close">

                      <span aria-hidden="true">&times;</span></button>

                  <span class="modal-title" id="myModalLabel4">Где купить?</span>

              </div>

  

              <div class="modal-body" style="text-transform:uppercase">

                  <p>Данный товар есть в наличии в наших розничных магазинах</p>

                  <br/>

                  <div class="shopsList">

                      <ul>

                          <?php foreach($product->variant->variantStocks as $stock){

                              if($stock->quantity > 0 ){?>

                              <li><?= Html::a($stock->stock->siteName, Url::to (['text/main', 'translit' => 'magaziny', '#'=>$stock->stock->stock_id])) ?></li>

                                  <?php } ?>

                          <?php } ?>

                      </ul>

  

                  </div>

  

                  <div class="clearfix"></div>

              </div>

  

          </div>

      </div>

175cad24   Alexey Boroda   -Similar started
624
625
  </div>

  

8149b4d7   Alexey Boroda   -Similar products...
626