055ecc3b
Karnovsky A
Karnovsky 11052016
|
1
|
<?php
|
01905ec6
Yarik
Filter fixing
|
2
3
4
|
/**
* @var Category $category
*/
|
3cd9d528
Yarik
Added icons to ba...
|
5
6
7
|
// use common\modules\comment\models\Comment;
// use common\modules\comment\models\Rating;
// use common\modules\comment\widgets\CommentWidget;
|
e608c5f7
Yarik
Comment added
|
8
|
use common\modules\comment\widgets\CommentWidget;
|
01905ec6
Yarik
Filter fixing
|
9
|
use common\modules\product\models\Category;
|
0f8aaa74
Yarik
Image alt + title
|
10
11
|
use yii\helpers\Html;
use yii\web\View;
|
85040b57
Yarik
Comment added
|
12
13
|
use yii\helpers\Url;
use frontend\widgets\Seo;
|
0f8aaa74
Yarik
Image alt + title
|
14
15
16
17
|
use frontend\assets\FlipclockAsset;
FlipclockAsset::register($this);
$fullname = $product->fullname;
|
01905ec6
Yarik
Filter fixing
|
18
|
$this->params[ 'seo' ][ 'key' ] = $category->categoryName->value;
|
0f8aaa74
Yarik
Image alt + title
|
19
20
21
22
|
$this->params[ 'seo' ][ 'fields' ][ 'name' ] = $fullname;
$this->params[ 'seo' ][ 'h1' ] = !empty( Seo::widget([ 'row' => 'h1' ]) ) ? Seo::widget(
[ 'row' => 'h1' ]
) : $fullname;
|
85040b57
Yarik
Comment added
|
23
|
|
0f8aaa74
Yarik
Image alt + title
|
24
25
26
27
28
|
//$this->params['seo']['title'] = "Купить " . substr($product->category->categoryName->value, 0, -2) . " " . $fullname . " в Киеве, Харькове, Украине: цены, отзывы - Rukzachok.com.ua";
//$this->params['seo']['description'] = "Заказать " . substr($product->category->categoryName->value, 0, -2) . " " . $fullname . " - самые модные и стильные рюкзаки в Украине по лучшим ценам. Интернет магазин рюкзаков Rukzachok.com.ua";
$this->title = $fullname;
//$this->title = (! empty($product->meta_title)) ? $product->meta_title : $fullname;
//$this->registerMetaTag (['name' => 'description', 'content' => ((! empty($product->meta_description)) ? $product->meta_description : $fullname)]);
|
85040b57
Yarik
Comment added
|
29
30
31
32
33
34
35
36
37
38
|
//$this->registerMetaTag (['name' => 'keywords', 'content' => $product->meta_keywords]);
//foreach($product->category->getParents()->all() as $parent) {
// $this->params['breadcrumbs'][] = ['label' => $parent->categoryName->value, 'url' => ['catalog/category', 'category' => $parent]];
//}
$this->params[ 'breadcrumbs' ][] = [
'label' => 'Каталог',
'url' => [ 'catalog/category' ],
];
$this->params[ 'breadcrumbs' ][] = [
|
01905ec6
Yarik
Filter fixing
|
39
|
'label' => $category->categoryName->value,
|
85040b57
Yarik
Comment added
|
40
41
|
'url' => [
'catalog/category',
|
01905ec6
Yarik
Filter fixing
|
42
|
'category' => $category,
|
85040b57
Yarik
Comment added
|
43
44
|
],
];
|
3ce8e503
Alex Savenko
хлебные крошки
|
45
|
$this->params[ 'breadcrumbs' ][] = [
|
0f8aaa74
Yarik
Image alt + title
|
46
|
'label' => $category->name . ' ' . $product->brand->name,
|
3ce8e503
Alex Savenko
хлебные крошки
|
47
|
'url' => [
|
fcbb31d1
Alex Savenko
фикс хлебных крош...
|
48
49
|
'catalog/category',
'category' => $category,
|
0f8aaa74
Yarik
Image alt + title
|
50
51
52
|
'filters' => [
'brands' => [ $product->brand->alias ],
],
|
3ce8e503
Alex Savenko
хлебные крошки
|
53
54
|
],
];
|
0f8aaa74
Yarik
Image alt + title
|
55
|
$this->params[ 'breadcrumbs' ][] = $fullname . ' #' . $product->variant->sku;
|
85040b57
Yarik
Comment added
|
56
|
|
0f8aaa74
Yarik
Image alt + title
|
57
58
|
$this->registerJs(
'
|
055ecc3b
Karnovsky A
Karnovsky 11052016
|
59
|
|
ccc7a9d3
Karnovsky A
Karnovsky 12052016
|
60
61
|
var checkData = function($index)
{
|
f307b0a8
Karnovsky A
-
|
62
63
64
65
|
var sourceNew = $(".productLeftBar .product_mod > li").eq($index);
$(".productLeftBar .product_mod > li").removeClass("active")
sourceNew.addClass("active");
var $source = sourceNew.find("a");
|
ccc7a9d3
Karnovsky A
Karnovsky 12052016
|
66
|
var $target = $(".productLeftBar .cost_box");
|
055ecc3b
Karnovsky A
Karnovsky 11052016
|
67
|
|
ccc7a9d3
Karnovsky A
Karnovsky 12052016
|
68
69
|
$("#cost").text($source.data("cost"));
$("#old_cost").text($source.data("old_cost"));
|
055ecc3b
Karnovsky A
Karnovsky 11052016
|
70
|
|
ccc7a9d3
Karnovsky A
Karnovsky 12052016
|
71
72
73
74
75
76
77
78
|
if (parseInt ($source.data("old_cost")) == 0)
{
$target.find("strike").hide();
}
else
{
$target.find("strike").show();
}
|
055ecc3b
Karnovsky A
Karnovsky 11052016
|
79
|
|
ccc7a9d3
Karnovsky A
Karnovsky 12052016
|
80
81
82
83
84
85
|
$("#product_id").val($source.data("id"));
$("#art").text($source.data("art"));
$("#color").text($source.data("color"));
$("#pic").attr("src",$source.data("image"));
$("#picoriginal").attr("href",$source.data("imageoriginal"));
}
|
055ecc3b
Karnovsky A
Karnovsky 11052016
|
86
|
|
e4cea6a9
Administrator
rm node nodule
|
87
88
89
90
|
$("body").on("click", ".link_buy_out_stock", function(e){
e.preventDefault();
});
|
ccc7a9d3
Karnovsky A
Karnovsky 12052016
|
91
92
93
|
$(".product_mod > li").click(function()
{
checkData($(this).index());
|
055ecc3b
Karnovsky A
Karnovsky 11052016
|
94
|
|
ccc7a9d3
Karnovsky A
Karnovsky 12052016
|
95
|
Shadowbox.setup($("#picoriginal"));
|
055ecc3b
Karnovsky A
Karnovsky 11052016
|
96
|
|
ccc7a9d3
Karnovsky A
Karnovsky 12052016
|
97
98
|
return false;
});
|
055ecc3b
Karnovsky A
Karnovsky 11052016
|
99
|
|
ccc7a9d3
Karnovsky A
Karnovsky 12052016
|
100
101
|
checkData(0);
|
0f8aaa74
Yarik
Image alt + title
|
102
103
104
105
|
',
View::POS_READY,
'fasovka'
);
|
85040b57
Yarik
Comment added
|
106
|
|
0f8aaa74
Yarik
Image alt + title
|
107
108
|
$this->registerJs(
"
|
745bb217
Alexey Boroda
-Cross links in p...
|
109
|
$('#nav_product li > a').addClass('active');
|
ccc7a9d3
Karnovsky A
Karnovsky 12052016
|
110
111
|
$('#nav_product li').find('.info').toggle();
|
745bb217
Alexey Boroda
-Cross links in p...
|
112
|
$('#nav_product li > a').bind('click',function()
|
ccc7a9d3
Karnovsky A
Karnovsky 12052016
|
113
114
115
116
117
118
119
|
{
if($(this).parent().find('.info').css('display')=='none')$(this).addClass('active');
else $(this).removeClass('active');
$(this).parent().find('.info').toggle();
return false;
});
|
0f8aaa74
Yarik
Image alt + title
|
120
121
122
123
|
",
View::POS_READY,
'nav_product'
);
|
85040b57
Yarik
Comment added
|
124
125
|
$this->registerCssFile(Yii::$app->request->BaseUrl . '/js/shadowbox-3.0.3/shadowbox.css');
|
0f8aaa74
Yarik
Image alt + title
|
126
127
128
129
130
131
132
133
134
|
$this->registerJsFile(
Yii::$app->request->baseUrl . '/js/shadowbox-3.0.3/shadowbox.js',
[
'position' => View::POS_END,
'depends' => [ 'yii\web\JqueryAsset' ],
]
);
$this->registerJs(
"
|
ccc7a9d3
Karnovsky A
Karnovsky 12052016
|
135
136
137
|
Shadowbox.init({
});
|
0f8aaa74
Yarik
Image alt + title
|
138
139
140
141
|
",
View::POS_READY,
'Shadowbox'
);
|
ccc7a9d3
Karnovsky A
Karnovsky 12052016
|
142
|
?>
|
af7fb26a
Administrator
20.07.16
|
143
|
|
0f8aaa74
Yarik
Image alt + title
|
144
|
<?php if ($flash = Yii::$app->session->getFlash('success')): ?>
|
ccc7a9d3
Karnovsky A
Karnovsky 12052016
|
145
146
|
<div class="alert-success"><?= $flash ?></div>
<?php endif; ?>
|
85040b57
Yarik
Comment added
|
147
148
149
150
|
<div class="loyout">
<div itemscope itemtype="http://schema.org/Product">
<div class="productLeftBar">
<div itemprop="name"><h1><?= Seo::widget([ 'row' => 'h1' ]) ?></h1></div>
|
0f8aaa74
Yarik
Image alt + title
|
151
|
<?php foreach ($product->enabledVariantsGrouped as $variantGroup) : ?>
|
85040b57
Yarik
Comment added
|
152
153
|
<div class="begin"><?= $variantGroup->name2 ?></div>
<ul class="product_mod">
|
0f8aaa74
Yarik
Image alt + title
|
154
|
<?php foreach ($variantGroup->_variants as $variant): ?>
|
85040b57
Yarik
Comment added
|
155
156
157
158
159
|
<li>
<a id='m<?= $variant->product_variant_id ?>' href="#<?= $variant->product_variant_id ?>"
data-cost="<?= $variant->price ?>"
data-old_cost="<?= $variant->price_old ?>" data-id="<?= $variant->product_variant_id ?>" data-art="<?= $variant->sku ?>"
data-color="<?= $variant->name ?>"
|
0f8aaa74
Yarik
Image alt + title
|
160
161
162
163
|
data-image="<?= \common\components\artboximage\ArtboxImageHelper::getImageSrc(
$variant->imageUrl,
'product_view'
) ?>"
|
85040b57
Yarik
Comment added
|
164
|
data-imageoriginal="<?= $variant->imageUrl ?>"
|
0f8aaa74
Yarik
Image alt + title
|
165
166
167
168
169
170
171
172
173
|
title="<?= $fullname ?>">
<?= \common\components\artboximage\ArtboxImageHelper::getImage(
$variant->imageUrl,
'product_variant',
[
'alt' => $fullname,
'title' => $fullname,
]
) ?>
|
85040b57
Yarik
Comment added
|
174
175
176
177
178
179
180
181
182
183
184
185
186
|
</a>
</li>
<?php endforeach; ?>
</ul>
<div class="both"></div>
<?php endforeach; ?>
<div class="cost_box product_read_">
<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<div class='params'>код: <span id='art'></span><br/> цвет:
<span id='color'></span></div>
<div class="product_read_price">
<div class="w">
|
0f8aaa74
Yarik
Image alt + title
|
187
|
<strike><span><span id='old_cost'><?= $product->variant->price_old > 0 ? $product->variant->price_old : 0 ?></span></span> грн.</strike>
|
e4cea6a9
Administrator
rm node nodule
|
188
|
<span class="cost"><span itemprop="price"><span id='cost'><?= $product->variant->price ?></span></span> <span class="valute">грн.</span></span>
|
85040b57
Yarik
Comment added
|
189
190
191
|
<meta itemprop="priceCurrency" content="UAH">
</div>
<input type='hidden' id='product_id'/>
|
0f8aaa74
Yarik
Image alt + title
|
192
|
<a href="#" rel='<?= $product->variant->price > 0 ? "product" : "" ?>' class="<?= $product->variant->price > 0 ? "link_buy" : "link_buy_out_stock" ?>"><?= $product->variant->price > 0 ? "Купить" : "Нет в наличии" ?></a>
|
85040b57
Yarik
Comment added
|
193
194
195
|
<div class="both"></div>
</div>
</div>
|
20ef43de
Yarik
Avarage rating st...
|
196
197
198
199
200
|
<div class="check_price">
<span>
Наличие и цены уточняйте на момент покупки.
</span>
</div>
|
85040b57
Yarik
Comment added
|
201
202
|
<div class="product_service">
<ul>
|
0f8aaa74
Yarik
Image alt + title
|
203
204
205
206
207
208
209
|
<?php if (Yii::$app->user->id) : ?>
<li class="item1"><a href="<?= Url::to(
[
'iam/share',
'id' => $product->product_id,
]
) ?>">Добавить в закладки</a></li>
|
85040b57
Yarik
Comment added
|
210
|
<?php endif ?>
|
0f8aaa74
Yarik
Image alt + title
|
211
212
213
214
215
216
217
|
<?php if (false && Yii::$app->user->id) : ?>
<li class="item2"><a href="<?= Url::to(
[
'iam/price',
'id' => $product->product_id,
]
) ?>">Узнать о снижение цены</a></li>
|
85040b57
Yarik
Comment added
|
218
|
<?php endif ?>
|
0f8aaa74
Yarik
Image alt + title
|
219
220
221
222
223
224
225
|
<?php if (false) : ?>
<li class="item3"><a href="<?= Url::to(
[
'products/compare',
'id' => $product->product_id,
]
) ?>">Добавить в сравнение</a></li>
|
85040b57
Yarik
Comment added
|
226
227
228
229
|
<?php endif ?>
</ul>
</div>
<div class="artbox_comment_description">
|
8f36efb7
Yarik
Added comments to...
|
230
|
<?php
|
0f8aaa74
Yarik
Image alt + title
|
231
|
if (!empty( $product->averageRating ) && $product->averageRating->value) {
|
8f36efb7
Yarik
Added comments to...
|
232
|
?>
|
20ef43de
Yarik
Avarage rating st...
|
233
|
<div itemprop="aggregateRating" class="product_rating_block" itemscope itemtype="http://schema.org/AggregateRating">
|
14009e7f
Yarik
Structure data fix
|
234
|
<span itemprop="ratingValue" style="display: none"><?php echo $product->averageRating->value; ?></span>
|
0f8aaa74
Yarik
Image alt + title
|
235
236
237
|
<span itemprop="ratingCount" style="display: none"><?php echo count(
$product->comments
); ?></span>
|
14009e7f
Yarik
Structure data fix
|
238
239
|
<div class="rateit" data-rateit-value="<?php echo $product->averageRating->value; ?>" data-rateit-readonly="true" data-rateit-ispreset="true"></div>
</div>
|
8f36efb7
Yarik
Added comments to...
|
240
241
242
|
<?php
}
?>
|
20ef43de
Yarik
Avarage rating st...
|
243
|
<p class="product_review_block"><a href="#artbox-comment" itemprop="interactionCount">
|
8f36efb7
Yarik
Added comments to...
|
244
245
|
<?php
$comment_count = count($product->comments);
|
0f8aaa74
Yarik
Image alt + title
|
246
|
if ($comment_count) {
|
8f36efb7
Yarik
Added comments to...
|
247
248
|
echo "Отзывов: " . $comment_count;
} else {
|
bf6045a8
Yarik
Rating styling fix.
|
249
|
echo "Оставить отзыв";
|
8f36efb7
Yarik
Added comments to...
|
250
251
252
|
}
?>
</a></p>
|
85040b57
Yarik
Comment added
|
253
254
|
</div>
<br>
|
34587997
Yarik
Commented share b...
|
255
256
257
258
259
260
261
|
<?php
/* Share buttons
?>
<div class="ya-share2" data-services="vkontakte,facebook,odnoklassniki,gplus,twitter" data-size="s"></div>
<?php
*/
?>
|
85040b57
Yarik
Comment added
|
262
|
</div>
|
8f36efb7
Yarik
Added comments to...
|
263
264
265
266
267
268
269
270
|
<div class="labels_block">
<div class="labels_item">
<img src="/img/icon_100_original_01.png" alt="">
</div>
<div class="labels_item">
<img src="/img/icon_100_quaranty_01.png" alt="">
</div>
</div>
|
85040b57
Yarik
Comment added
|
271
|
<?php /*
|
ccc7a9d3
Karnovsky A
Karnovsky 12052016
|
272
273
274
275
276
277
278
279
280
|
<div class="product_service">
<ul>
<li class="item1"><a href="<?= Url::to (['iam/share', 'id' => $product->product_id]) ?>">Добавить в закладки</a>
</li>
<li class="item2"><a href="<?= Url::to (['iam/price', 'id' => $product->product_id]) ?>">Узнать о снижение
цены</a></li>
<li class="item3"><a href="<?= Url::to (['products/compare', 'id' => $product->product_id]) ?>">Добавить в
сравнение</a></li>
</ul>
|
85040b57
Yarik
Comment added
|
281
282
283
284
|
</div>*/ ?>
</div>
<div class="productRightBar">
|
0f8aaa74
Yarik
Image alt + title
|
285
286
|
<?php foreach ($product->events as $event): ?>
<?php if (!empty( $event->end_at ) && $event->isActive()): ?>
|
873e3d80
Administrator
14.09.16
|
287
|
<div class="event_block">
|
0f8aaa74
Yarik
Image alt + title
|
288
289
290
291
292
293
294
295
296
297
298
|
<div class="event_title"> <?= Html::a(
'Акция!!! ' . $event->name,
Url::to(
[
'event/show',
'alias' => $event->alias,
'id' => $event->primaryKey,
]
)
) ?></div>
|
873e3d80
Administrator
14.09.16
|
299
300
301
302
|
<div class="event_time">До конца осталось:</div>
<div class="clock_<?= $event->primaryKey ?> clock_product_first "></div>
<script type="text/javascript">
var clock;
|
0f8aaa74
Yarik
Image alt + title
|
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
|
$(document)
.ready(
function() {
var clock;
clock = $('.clock_<?= $event->primaryKey ?>')
.FlipClock(
{
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();
}
);
|
873e3d80
Administrator
14.09.16
|
335
|
</script>
|
0f8aaa74
Yarik
Image alt + title
|
336
|
|
873e3d80
Administrator
14.09.16
|
337
338
339
|
</div>
<?php endif; ?>
<?php endforeach; ?>
|
0f8aaa74
Yarik
Image alt + title
|
340
|
|
85040b57
Yarik
Comment added
|
341
342
343
|
<ul id="nav_product">
<li><a href="#">Характеристики</a>
<div class="info">
|
0f8aaa74
Yarik
Image alt + title
|
344
345
346
347
348
349
350
351
352
353
354
|
<p>Бренд: <?= Html::a(
$product->brand->name,
[
'catalog/category',
'category' => $category,
'filters' => [
'brands' => [ $product->brand->alias ],
],
]
) ?></p>
<?php foreach ($product->getActiveProperties($category->category_id) as $group): ?>
|
745bb217
Alexey Boroda
-Cross links in p...
|
355
356
|
<p>
<?php
|
0f8aaa74
Yarik
Image alt + title
|
357
|
echo $group->name . ' ';
|
745bb217
Alexey Boroda
-Cross links in p...
|
358
|
$i = 1;
|
0f8aaa74
Yarik
Image alt + title
|
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
|
foreach ($group->_options as $option) {
if ($group->is_filter) {
echo Html::a(
$option->ValueRenderHTML,
[
'catalog/category',
'category' => $category,
'filters' => [
$group->alias => [ $option->alias ],
],
]
);
} else {
echo $option->ValueRenderHTML;
}
if (count($group->_options) != $i) {
echo ', ';
}
$i++;
|
745bb217
Alexey Boroda
-Cross links in p...
|
378
|
}
|
0f8aaa74
Yarik
Image alt + title
|
379
|
unset( $i );
|
745bb217
Alexey Boroda
-Cross links in p...
|
380
381
|
?>
</p>
|
85040b57
Yarik
Comment added
|
382
383
384
385
386
387
388
389
390
391
|
<?php endforeach; ?>
</div>
</li>
<li><a href="#">Описание</a>
<div itemprop="description">
<div class="info">
<?= $product->description ?>
</div>
</div>
</li>
|
0f8aaa74
Yarik
Image alt + title
|
392
393
394
395
396
|
<?php if (!empty( $product->video ) && strpos($product->video, '.jpg') === false && strpos(
$product->video,
'.png'
) === false
) : ?>
|
85040b57
Yarik
Comment added
|
397
398
|
<li><a href="#">Видео</a>
<div class="info product-thumb-video">
|
0f8aaa74
Yarik
Image alt + title
|
399
400
401
402
403
|
<?php if (strpos($product->video, '<iframe') !== false || strpos(
$product->video,
'<object'
) !== false
) : ?>
|
85040b57
Yarik
Comment added
|
404
405
|
<?= $product->video ?>
<?php else : ?>
|
0f8aaa74
Yarik
Image alt + title
|
406
407
408
409
410
411
|
<?= \cics\widgets\VideoEmbed::widget(
[
'responsive' => false,
'url' => $product->video,
]
) ?>
|
85040b57
Yarik
Comment added
|
412
413
414
415
416
417
|
<?php endif ?>
</div>
</li>
<?php endif ?>
</ul>
</div>
|
14009e7f
Yarik
Structure data fix
|
418
419
420
|
<div class="content">
<div class="pic">
<center>
|
0f8aaa74
Yarik
Image alt + title
|
421
422
423
424
425
426
427
428
429
|
<a href="#" rel="shadowbox[gal]" id="picoriginal"><?= \common\components\artboximage\ArtboxImageHelper::getImage(
$product->variant->imageUrl,
'product_view',
[
'id' => 'pic',
'alt' => $fullname,
'title' => $fullname,
]
) ?></a>
|
14009e7f
Yarik
Structure data fix
|
430
431
432
|
</center>
</div>
<ul class="product_colors">
|
0f8aaa74
Yarik
Image alt + title
|
433
|
<?php foreach ($product->images as $image): ?>
|
14009e7f
Yarik
Structure data fix
|
434
|
<li><a href="<?= $image->imageUrl ?>" rel="shadowbox[gal]">
|
0f8aaa74
Yarik
Image alt + title
|
435
436
437
438
439
440
441
442
|
<?= \common\components\artboximage\ArtboxImageHelper::getImage(
$image->imageUrl,
'product_trumb2',
[
'alt' => $fullname,
'title' => $fullname,
]
) ?>
|
14009e7f
Yarik
Structure data fix
|
443
444
445
446
|
</a></li>
<?php endforeach; ?>
</ul>
</div>
|
873e3d80
Administrator
14.09.16
|
447
|
<div class="events">
|
0f8aaa74
Yarik
Image alt + title
|
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
|
<?php foreach ($product->events as $event): ?>
<?php if (!empty( $event->banner ) && $event->isActive()): ?>
<?= Html::a(
\common\components\artboximage\ArtboxImageHelper::getImage(
$event->bannerUrl,
'event_in_product'
),
Url::to(
[
'event/show',
'alias' => $event->alias,
'id' => $event->primaryKey,
]
)
) ?>
|
873e3d80
Administrator
14.09.16
|
463
464
465
|
<?php endif; ?>
<?php endforeach; ?>
</div>
|
0f8aaa74
Yarik
Image alt + title
|
466
|
|
14009e7f
Yarik
Structure data fix
|
467
468
469
|
<div class="both"></div>
<div class="comment-wrapper" style="padding-bottom:25px">
<?php
|
0f8aaa74
Yarik
Image alt + title
|
470
471
472
473
474
|
echo CommentWidget::widget(
[
'model' => $product,
]
);
|
14009e7f
Yarik
Structure data fix
|
475
476
477
|
?>
<div class="both"></div>
</div>
|
17ca60dd
Yarik
Added comments to...
|
478
|
<div class="both"></div>
|
85040b57
Yarik
Comment added
|
479
|
</div>
|
85040b57
Yarik
Comment added
|
480
481
482
483
484
|
<?= \common\modules\product\widgets\similarProducts::widget([ 'product' => $product ]) ?>
<?= \common\modules\product\widgets\specialProducts::widget([ 'type' => 'promo' ]) ?>
<?= \common\modules\product\widgets\specialProducts::widget([ 'type' => 'new' ]) ?>
<?= \common\modules\product\widgets\specialProducts::widget([ 'type' => 'top' ]) ?>
<?= \common\modules\product\widgets\lastProducts::widget() ?>
|
e608c5f7
Yarik
Comment added
|
485
|
</div>
|
85235ea6
Виталий
Веталь
|
486
|
<?php
|
0f8aaa74
Yarik
Image alt + title
|
487
488
|
$this->registerJs(
"
|
2fcc30a0
Виталий
Веталь
|
489
490
491
492
493
494
495
496
497
498
499
500
|
var productHash = window.location.hash;
productHash = productHash.replace('#','')
var productUl = $('ul.product_mod li')
var productA = productUl.find('a#'+productHash)
productUl.removeClass('active')
productA.parent().addClass('active')
var dataLink = productA.attr('data-imageoriginal')
var dataImg = productA.attr('data-image')
$('#pic').attr('src',dataImg)
$('#pic').parent().attr('href',dataLink)
|
0f8aaa74
Yarik
Image alt + title
|
501
502
503
504
|
",
View::POS_READY,
'new_script'
);
|
2fcc30a0
Виталий
Веталь
|
505
|
?>
|