- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2015
11:15 AM
05-31-2015
11:15 AM
too big new products home page
hellooo
does anyone know how I can change the size of the new products on the home page? for pc only mobile is fine
the icons are too big http://www.alteregofitness.co.uk/
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2015
11:19 PM
06-02-2015
11:19 PM
Re: too big new products home page
Go To Your New Product .phtml File and replace your code with the below given code after <li > tag.
If your Magento version is 1.9.0 and Higher, then use the below code:
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"> <?php $_imgSizeW = 370; ?> <?php $_imgSizeH = 210; ?> <img id="product-collection-image-<?php echo $_product->getId(); ?>" src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize($_imgSizeW,$_imgSizeH); ?>" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /> </a>
If your Magento version is below 1.9.0, then use the below code:
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(370,210) ?>" width="370" height="210" alt="<?php echo $this->stripTags($_product->getName(), null, true) ?>" /></a>
If you want to change image size as your image box then replace width & height respectively into resize(370,210).
Thanks!
Query solved? Accept as Solution.Thanks
Eric Baily
Eric Baily