Hi There
I am trying to get my additional images template to load the images from the second one (to ignore the main image).
Below is my code:
<?php // List all Images
$i = 0;
foreach ($this->product->images as $image) {
$ImageId = $i++;
?>
<div class="additionalimages_wrapper">
<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000"></div>
<a id="" class="myText" onmouseout="nd();" onmouseover="return overlib('<div class=test><?php echo $this->product->images[$ImageId]->file_meta;?></div>',
TEXTFONTCLASS,'olTxtB',
BORDER,0,
BASE,6,
TEXTPADDING,0,
FILTER,MIDX,0,RELY,20,
BGBACKGROUND,'<?php echo JURI::root().$this->product->images[$ImageId]->file_url_thumb;?>',
FGBACKGROUND,'<?php echo JURI::root().$this->product->images[$ImageId]->file_url;?>');" onmousemove="if(OLie7)self.status=this.href;" href="javascript:void(0);" name="refpos">
<img src="<?php echo JURI::root().$this->product->images[$ImageId]->file_url_thumb;?>" alt="<?php echo $this->product->images[$ImageId]->file_meta;?>" />
</a>
<div class="subTitle"><?php echo $this->product->images[$ImageId]->file_meta;?></div></div>
</span>
<?php } ?>
</div>
</div>
I have also tried the normal count code and still it doesn't count the / ignore the first image.
<?php if(!empty($this->product->images) && count($this->product->images)>2) {
foreach ($this->product->images as $image) {
echo $image->displayMediaThumb('class="product-image"',true,'class="modal"'); //'class="modal"'
}
}
?>