Приветствую всех, прощу помочь сделать так чтобы ролик на странице товара был первым и запускался автоматически..
Как это сделать..??
Вот код который нужно изменить:
<div class="image_middle">
<?php print $this->_tmp_product_html_before_image;?>
<?php if ($product->label_id){?>
<div class="product_label">
<?php if ($product->_label_image){?>
<img src="<?php print $product->_label_image?>" alt="<?php print htmlspecialchars($product->_label_name)?>" />
<?php }else{?>
<span class="label_name"><?php print $product->_label_name;?></span>
<?php }?>
</div>
<?php }?>
<?php if (count($this->videos)){?>
<?php foreach($this->videos as $k=>$video){?>
<?php if ($video->video_code){ ?>
<div style="display:none" class="video_full" id="hide_video_<?php print $k?>"><?php echo $video->video_code?></div>
<?php } else { ?>
<a style="display:none" class="video_full" id="hide_video_<?php print $k?>" href=""></a>
<?php } ?>
<?php } ?>
<?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){?>
<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->img_title)?>">
<img id="main_image_<?php print $image->image_id?>" class="image" src="<?php print $this->image_product_path?>/<?php print $image->image_name;?>" alt="<?php print htmlspecialchars($image->img_alt)?>" title="<?php print htmlspecialchars($image->img_title)?>" />
<div class="text_zoom">
<span class="icon-zoom-in"></span>
<?php print Text::_('JSHOP_ZOOM_IMAGE')?>
</div>
</a>
<?php }?>
</span>
<?php print $this->_tmp_product_html_after_image;?>
</div>
<div class="image_thumb_list">
<?php print $this->_tmp_product_html_before_image_thumb;?>
<div id='list_product_image_thumb' class="row-fluid0">
<?php if ( (count($this->images)>1) || (count($this->videos) && count($this->images)) ) {?>
<?php foreach($this->images as $k=>$image){?>
<div class="sblock0">
<img class="jshop_img_thumb" src="<?php print $this->image_product_path?>/<?php print $image->image_thumb?>" alt="<?php print htmlspecialchars($image->img_alt)?>" title="<?php print htmlspecialchars($image->img_title)?>" onclick="jshop.showImage(<?php print $image->image_id?>)">
</div>
<?php }?>
<?php }?>
</div>
<?php print $this->_tmp_product_html_after_image_thumb;?>
<?php if (count($this->videos)){?>
<?php foreach($this->videos as $k=>$video){?>
<?php if ($video->video_code) { ?>
<a href="#" id="video_<?php print $k?>" onclick="jshop.showVideoCode(this.id);return false;"><img class="jshop_video_thumb" src="<?php print $this->video_image_preview_path."/"; if ($video->video_preview) print $video->video_preview; else print 'video.gif'?>" alt="video" /></a>
<?php } else { ?>
<a href="<?php print $this->video_product_path?>/<?php print $video->video_name?>" id="video_<?php print $k?>" onclick="jshop.showVideo(this.id, '<?php print $this->config->video_product_width;?>', '<?php print $this->config->video_product_height;?>'); return false;"><img class="jshop_video_thumb" src="<?php print $this->video_image_preview_path."/"; if ($video->video_preview) print $video->video_preview; else print 'video.gif'?>" alt="video" /></a>
<?php } ?>
<?php } ?>
<?php }?>
<?php print $this->_tmp_product_html_after_video;?>
</div>
Joomla: 5.1.4
JoomShopping: 5.5.2
PHP: 8.3.17
JoomShopping: 5.5.2
PHP: 8.3.17
Letzte Änderung: 19.02.2025 12:19



