Commit 2a6395f3 authored by John Punzalan's avatar John Punzalan

Update product view, add image

parent bd17794b
......@@ -33,6 +33,7 @@
?>
<?php $_helper = $this->helper('catalog/output'); ?>
<?php $_product = $this->getProduct(); ?>
<?php $no_display_image_id = array(1, 2, 3); ?>
<script type="text/javascript">
var optionsPrice = new Product.OptionsPrice(<?php echo $this->getJsonConfig() ?>);
</script>
......@@ -46,8 +47,11 @@
<input type="hidden" name="related_product" id="related-products-field" value="" />
</div>
<div class="col-md-7">
<div class="image-product" id="<?= strtolower($_product->getSku()) ?>"></div>
<!-- --><?php //echo $this->getChildHtml('media') ?>
<div class="image-product" id="<?= strtolower($_product->getSku()) ?>">
<?php if (!in_array($_product->getId(), $no_display_image_id)): ?>
<?php echo $this->getChildHtml('media') ?>
<?php endif; ?>
</div>
</div>
<div class="col-md-5">
<div class="product-info-block">
......
......@@ -41,4 +41,6 @@ $_helper = $this->helper('catalog/output');
<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
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