Commit b5e05a66e1cd3f24c4105cd02631ac9fc1f77595

Authored by Administrator
1 parent 2a47d6e7

event link fix

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
frontend/views/catalog/product.php
@@ -305,7 +305,7 @@ @@ -305,7 +305,7 @@
305 <?php if(!empty($event->banner) && $event->isActive()): 305 <?php if(!empty($event->banner) && $event->isActive()):
306 306
307 ?> 307 ?>
308 - <?= Html::a(\common\components\artboximage\ArtboxImageHelper::getImage($event->getImageUrl('banner'), 'banner_list'),Url::to(['event/sale','percent'=>$event->percent]),[ 308 + <?= Html::a(\common\components\artboximage\ArtboxImageHelper::getImage($event->getImageUrl('banner'), 'banner_list'),Url::to(['event/sale','percent'=>($event->percent ?$event->percent:$event->alias)]),[
309 'style' =>"top:-{$top}px;" 309 'style' =>"top:-{$top}px;"
310 ]); 310 ]);
311 311