-
- joseph_schaefer

-
Total Posts: 0
Joined: 2011-10-02
|
I have done a bit of reading and I still have not been able to get my images out of the 135x135 size in grid view on my store. From what I have read it has to be changes in the list.phtml file located in ...template>catalog>product. I changes it according to other forum posts, but it still will not budge. The image is just stretched to 245x245, but the base image is truly 135x135. Please take a look here (http://stalfred.com/store/index.php/brands/neighborhood.html) Here is the code from my list.phtml file as well. Could anyone help me get the images truly to 245x245 and not just stretched to appear that way. Any insight would be greatly appreciated. Thanks!
<div class="category-products"> <?php echo $this->getToolbarHtml() ?> <?php // List mode ?> <?php if($this->getMode()!='grid'): ?> <?php $_iterator = 0; ?> <?php $imgSize = 192; ?> <ol class="products-list" id="products-list"> <?php foreach ($_productCollection as $_product): ?> <li class="item<?php if( ++$_iterator == sizeof($_productCollection) ): ?> last<?php endif; ?>"> <?php include('view/labels.phtml') ?> <?php $mainImg = $this->helper('catalog/image')->init($_product, 'small_image')->resize($imgSize)->setQuality(95); ?> <?php if($hoverSwap): $backImg = $this->getLayout()->createBlock("ajax/listmedia")->setTemplate("catalog/product/list/media.phtml")->setData('size', $imgSize)->setData('product', $_product)->toHtml(); endif; ?> <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"> <?php if($backImg != 'null' && $backImg): ?><img src="<?php echo $backImg ?>" width="<?php echo $imgSize ?>" height="<?php echo $imgSize ?>" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /><?php endif; ?> <img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize($imgSize)->setQuality(95) ?>" <?php if($backImg != 'null' && $backImg): ?>onmouseover="hideImage(this)" onmouseout="showImage(this)"<?php endif; ?> width="<?php echo $imgSize ?>" height="<?php echo $imgSize ?>" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /> </a>
|