Commit bef2e4d6 authored by John Punzalan's avatar John Punzalan

Update product view, add image

parent 2a6395f3
......@@ -35,12 +35,16 @@ $_product = $this->getProduct();
$_helper = $this->helper('catalog/output');
?>
<?php if (count($this->getGalleryImages()) > 0): ?>
<div class="slideshow-product-image royalSlider rsDefault" id="royalslider-product-static">
<?php foreach ($this->getGalleryImages() as $_image): ?>
<img itemprop="image" class="rsImg cloudzoom" data-rsTmb="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(600) ?>" data-cloudzoom="zoomImage: '<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'image', $_image->getFile())->constrainOnly(TRUE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize(1200,null) ?>', zoomSizeMode:'image'" src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'image', $_image->getFile())->constrainOnly(TRUE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize(600,null) ?>" width="400" />
<?php endforeach; ?>
</div>
<?php else: ?>
<img src="<?= $_product->getImage() ?>" />
<?php endif; ?>
\ No newline at end of file
<?php //if (count($this->getGalleryImages()) > 0): ?>
<!-- <div class="slideshow-product-image royalSlider rsDefault" id="royalslider-product-static">-->
<!-- --><?php //foreach ($this->getGalleryImages() as $_image): ?>
<!-- <img itemprop="image" class="rsImg cloudzoom" data-rsTmb="--><?php //echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(600) ?><!--" data-cloudzoom="zoomImage: '--><?php //echo $this->helper('catalog/image')->init($this->getProduct(), 'image', $_image->getFile())->constrainOnly(TRUE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize(1200,null) ?><!--', zoomSizeMode:'image'" src="--><?php //echo $this->helper('catalog/image')->init($this->getProduct(), 'image', $_image->getFile())->constrainOnly(TRUE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize(600,null) ?><!--" width="400" />-->
<!-- --><?php //endforeach; ?>
<!-- </div>-->
<?php //else: ?>
<!-- <img src="--><?//= $_product->getImage() ?><!--" />-->
<?php //endif; ?>
<img src="<?= $_product->getImage() ?>" />
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment