Новости Joomla

0 Пользователей и 1 Гость просматривают эту тему.
  • 0 Ответов
  • 1060 Просмотров
*

gertruda

  • Захожу иногда
  • 100
  • 0 / 0
Здравствуйте

работаю вот с этим шаблоном http://demo.smartaddons.com/#sj-topdeal

там стоит zoom в карточке товара
как бы его отключить, нужен обычный Lightbox.
подскажите, пожалуйста
код  прикладываю

Код
<div class="product-image col-xs-12 col-sm-6 col-md-5">
<div class="image_middle large-image">



<?php print $this->_tmp_product_html_before_image;?>
<?php if ($product->label_id){?>
<div class="product_label">
<?php print $product->_label_name;?>
</div>
<?php }?>


<span id='list_product_image_middle'>
<?php print $this->_tmp_product_html_body_image?>
<?php if(!count($this->images)){?>
<img id = "main_image" src = "<?php print $this->image_product_path?>/<?php print $this->noimage?>" alt = "<?php print htmlspecialchars($this->product->name)?>" />
<?php }?>
<?php foreach($this->images as $k=>$image){?>
<div class="image_full" id="main_image_full_<?php print $image->image_id?>" <?php if ($k!=0){?>style="display:none"<?php }?>>

<?php //Create placeholder items images
$src = ($this->image_product_path.'/'.$image->image_name);
if (file_exists($src) || @getimagesize($src)!== false) {
$full_img = '<img src="'.$src.'" alt="'.htmlspecialchars($image->_title).'" />';
}else {
$full_img = yt_placehold($placehold_size['product_detail']);
}
?>

<?php echo $full_img; ?>

</div>

<?php }?>

</span>
<?php print $this->_tmp_product_html_after_image;?>

<?php if ($this->config->product_show_manufacturer_logo && $this->product->manufacturer_info->manufacturer_logo!=""){?>
<div class="manufacturer_logo">
<a href="<?php print SEFLink('index.php?option=com_jshopping&controller=manufacturer&task=view&manufacturer_id='.$this->product->product_manufacturer_id, 2);?>">
<img src="<?php print $this->config->image_manufs_live_path."/".$this->product->manufacturer_info->manufacturer_logo?>" alt="<?php print htmlspecialchars($this->product->manufacturer_info->name);?>"  border="0" />
</a>
</div>
<?php }?>
</div>
<div class="additional-images yt-carousel">
<div id="thumb-slider"  class="jCarouselLite">
<?php print $this->_tmp_product_html_before_image_thumb;?>
<!--<span id='list_product_image_thumb'>-->
<?php if ( (count($this->images)>1) || (count($this->videos) && count($this->images)) ) {?>
<?php
$i=0;
?>
<?php foreach($this->images as $k=>$image){?>
<?php $i=$i+1; ?>
<div>
<a class="img" data-index='<?php echo $i; ?>'data-image="<?php print loadImg(($this->image_product_path."/".$image->image_name),'http://placehold.it/83x83');?>" title="<?php print htmlspecialchars($image->_title)?>" ><img class="jshop_img_thumb" src="<?php print loadImg(($this->image_product_path."/".$image->image_thumb),'http://placehold.it/83x83/969696');?>" alt="<?php print htmlspecialchars($image->_title)?>" title="<?php print htmlspecialchars($image->_title)?>" /> </a>
</div>
<?php }?>
<?php }?>
<!--</span>-->

</div>

<div class="clear"></div>
</div>
</div>

Код
<?php print $this->_tmp_product_html_body_image?>
<?php if(!count($this->images)){?>
    <img id="main_image" src="<?php print $this->image_product_path?>/<?php print $this->noimage?>" alt="<?php print htmlspecialchars($this->product->name)?>" />
<?php }?>
<?php foreach($this->images as $k=>$image){?>
<a class="lightbox" id="main_image_full_<?php print $image->image_id?>" href="<?php print $this->image_product_path?>/<?php print $image->image_full;?>" <?php if ($k!=0){?>style="display:none"<?php }?> title="<?php print htmlspecialchars($image->_title)?>">
    <img id = "main_image_<?php print $image->image_id?>" src = "<?php print $this->image_product_path?>/<?php print $image->image_name;?>" alt="<?php print htmlspecialchars($image->_title)?>" title="<?php print htmlspecialchars($image->_title)?>" />
    <div class="text_zoom">
        <img src="<?php print $this->path_to_image?>search.png" alt="zoom" /> <?php print _JSHOP_ZOOM_IMAGE?>
    </div>
</a>
<?php }?>

Код
<?php if ( (count($this->images)>1) || (count($this->videos) && count($this->images)) ) {?>
    <?php foreach($this->images as $k=>$image){?>
        <img class="jshop_img_thumb" src="<?php print $this->image_product_path?>/<?php print $image->image_thumb?>" alt="<?php print htmlspecialchars($image->_title)?>" title="<?php print htmlspecialchars($image->_title)?>" onclick="showImage(<?php print $image->image_id?>)" />
    <?php }?>
<?php }?>
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Вкладки (табы) в описании товара

Автор Sergio

Ответов: 254
Просмотров: 51132
Последний ответ 12.10.2023, 12:20:59
от dron
Где посмотреть варианты карточки товара

Автор itbc

Ответов: 6
Просмотров: 1686
Последний ответ 31.10.2022, 10:05:51
от nevigen
Основная картинка в карточке товара на весь экран

Автор Mister Shadow

Ответов: 1
Просмотров: 1223
Последний ответ 08.07.2022, 22:16:27
от nevigen
meta title на странице товара

Автор ecolora

Ответов: 5
Просмотров: 1397
Последний ответ 30.05.2022, 14:31:44
от kit2m2
Вывести артикул вместо кода товара в письмо клиента

Автор antony2606

Ответов: 2
Просмотров: 1376
Последний ответ 09.02.2021, 17:01:25
от antony2606