title: Magento product page resize
body: <p><a href="http://dev.factorydirectmedical.com/wheelchairs?mode=grid" rel="nofollow noreferrer">http://dev.factorydirectmedical.com/wheelchairs?mode=grid</a> this is my product page and I want to resize the images. I used Magento developer option to hint the template path. Here a screenshot, (<a href="http://www.awesomescreenshot.com/image/1645297/4998c8379ebab36e77cab59c1a9c3bd5" rel="nofollow noreferrer">http://www.awesomescreenshot.com/image/1645297/4998c8379ebab36e77cab59c1a9c3bd5</a>), I found the HTML file but I'm unable to fix this image box. </p>
  
  <p><strong>List.phtml</strong></p>
  
  <pre><code>&lt;?php
  /**
   * @package     be
   * @copyright   Copyright (c) 2010-2015 MeigeeTeam. (http://www.meigeeteam.com)
   */
  ?&gt;
  &lt;?php
  /**
   * Product list template
   *
   * @see Mage_Catalog_Block_Product_List
   */
  ?&gt;
  &lt;?php
      $_productCollection=$this-&gt;getLoadedProductCollection();
      $_helper = $this-&gt;helper('catalog/output');
      $meigeeOptions = $this-&gt;getLayout();
      $gridColumns = $meigeeOptions-&gt;getMConfigResultByAlias('listing_columns');
      $productType = $meigeeOptions-&gt;getMConfigResultByAlias('listing_product_type');
      $listType = $meigeeOptions-&gt;getMConfigResultByAlias('listing_list_type');
      $grid_indents = $meigeeOptions-&gt;getMConfigResultByAlias('listing_indents');
  ?&gt;
  &lt;?php if(!$_productCollection-&gt;count()): ?&gt;
  &lt;p class="note-msg"&gt;&lt;?php echo $this-&gt;__('There are no products matching the selection.') ?&gt;&lt;/p&gt;
  &lt;?php else: ?&gt;
  &lt;div class="category-products"&gt;
      &lt;?php echo $this-&gt;getToolbarHtml() ?&gt;
      &lt;?php // List mode ?&gt;
      &lt;?php if($this-&gt;getMode()!='grid'): ?&gt;
  
      &lt;ol class="products-list" id="products-list"&gt;
      &lt;?php foreach ($_productCollection as $_product): ?&gt;
          &lt;?php echo $this-&gt;getLayout()-&gt;createBlock('page/html')-&gt;setProductInfo($_product)-&gt;setProductList($this)-&gt;setIterator($this)-&gt;setTemplate($listType)-&gt;toHtml(); ?&gt;
      &lt;?php endforeach; ?&gt;
      &lt;/ol&gt;
      &lt;script type="text/javascript"&gt;decorateList('products-list', 'none-recursive')&lt;/script&gt;
      &lt;?php else: ?&gt;
      &lt;?php // Grid Mode ?&gt;
  
      &lt;ul class="products-grid row &lt;?php echo $gridColumns.''.($grid_indents != 1 ? ' no-indents' : ''); ?&gt;"&gt;
          &lt;?php foreach ($_productCollection as $_product): ?&gt;
              &lt;?php echo $this-&gt;getLayout()-&gt;createBlock('page/html')-&gt;setProductInfo($_product)-&gt;setProductList($this)-&gt;setTemplate($productType)-&gt;toHtml(); ?&gt;
          &lt;?php endforeach ?&gt;
       &lt;/ul&gt;
      &lt;script type="text/javascript"&gt;
          decorateGeneric($$('ul.products-grid'), ['odd','even','first','last']);
      &lt;/script&gt;
      &lt;?php endif; ?&gt;
      &lt;div class="toolbar-bottom"&gt;
          &lt;?php echo $this-&gt;getToolbarHtml() ?&gt;
      &lt;/div&gt;
  
  
      &lt;script type="text/javascript"&gt;
          jQuery(window).load(function(){
              function buttonsSize(){
                  if(jQuery('.category-products li.item').length){
                      jQuery('.category-products li.item').each(function(){
                          itemsCount = jQuery(this).find('.image-box .actions').children().length;
                          switch(itemsCount) {
                              case 1:
                                  itemsCountClass = 'one-item';
                              break;
                              case 2:
                                  itemsCountClass = 'two-items';
                              break;
                              case 3:
                                  itemsCountClass = 'three-items';
                              break;
                              case 4:
                                  itemsCountClass = 'four-items';
                              break;
                              default:
                                  itemsCountClass = 'four-items';
                              break;
                          }
                          jQuery(this).find('.image-box .actions').addClass(itemsCountClass);
                      });
                  }
              }
              buttonsSize();
              jQuery(window).resize(function(){
                  buttonsSize();
              });
              if('undefined' != typeof GeneralToolbar) {
                  buttonsSize();
              }
              GeneralToolbar.onInit = function(){
                  buttonsSize();
              }
          });
      &lt;/script&gt;
  
      &lt;?php if(Mage::app()-&gt;getLayout()-&gt;getBlock('ajaxkit')-&gt;issetSubmodulesConfig('general_toolbar')) { ?&gt;
          &lt;div class="infinite-scroll-elements"&gt;
              &lt;div class="infinite-scroll-loader"&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;
              &lt;div class="infinite-scroll-button" id="StaticScrollBtn"&gt;&lt;?php echo $this-&gt;__('Show More Products'); ?&gt;&lt;/div&gt;
          &lt;/div&gt;
      &lt;?php } ?&gt;
  &lt;/div&gt;
  &lt;?php endif; ?&gt;
  &lt;?php
  // Provides a block where additional page components may be attached, primarily good for in-page JavaScript
  if ($this-&gt;getChild('after')){
      $_afterChildren = $this-&gt;getChild('after')-&gt;getSortedChildren();
      foreach ($_afterChildren as $_afterChildName){
          $_afterChild = $this-&gt;getChild('after')-&gt;getChild($_afterChildName);
          //set product collection on after blocks
          $_afterChild-&gt;setProductCollection($_productCollection);
          echo $_afterChild-&gt;toHtml();
      }
  }
  ?&gt;
  </code></pre>
  
  <p><strong>new.phtml</strong></p>
  
  <pre><code>&lt;?php
  /**
   * @package     be
   * @copyright   Copyright (c) 2010-2015 MeigeeTeam. (http://www.meigeeteam.com)
   */
   $meigeeOptions = $this-&gt;getLayout();
   $lightBox = $meigeeOptions-&gt;getMConfigResultByAlias('lightbox_listing');
   $timerStatus = $meigeeOptions-&gt;getMConfigResultByAlias('timer_status');
   $timerListingStatus = $meigeeOptions-&gt;getMConfigResultByAlias('timer_listing_status');
   $catalogModeWrapper = $meigeeOptions-&gt;getMConfigResultByAlias('catalog_mode');
   $catalogMode = $catalogModeWrapper['value']['sv2']['value'];
  ?&gt;
  &lt;?php if (($_products = $this-&gt;getProductCollection()) &amp;&amp; $_products-&gt;getSize()): ?&gt;
  &lt;div class="row"&gt;
      &lt;div class="widget widget-new-products clearfix"&gt;
          &lt;div class="col-xs-12"&gt;
              &lt;header class="widget-title"&gt;
                  &lt;h2&gt;&lt;?php echo $this-&gt;__('New Products') ?&gt;&lt;/h2&gt;
              &lt;/header&gt;
          &lt;/div&gt;
          &lt;div class="widget-products col-xs-12"&gt;
              &lt;?php echo $this-&gt;getPagerHtml() ?&gt;
              &lt;div class="row"&gt;
                  &lt;ul class="products-grid clearfix"&gt;
                      &lt;?php $i=0; foreach ($_products-&gt;getItems() as $_product): ?&gt;
                          &lt;li class="item col-xs-6 col-sm-3"&gt;
                              &lt;div class="image-box"&gt;
                                  &lt;?php if($lightBox){ ?&gt;
                                      &lt;a href="&lt;?php echo $_product-&gt;getProductMediaResized(930, 'small_image')-&gt;getImageSrc(); ?&gt;" data-toggle="lightbox" class="lightbox-button" data-footer="&lt;?php echo $this-&gt;stripTags($_product-&gt;getName(), null, true) ?&gt;" title="&lt;?php echo $this-&gt;__('Lightbox'); ?&gt;"&gt;
                                          &lt;i class="icon-search"&gt;&lt;/i&gt;
                                      &lt;/a&gt;
                                  &lt;?php } ?&gt;
                                  &lt;?php echo $this-&gt;getLayout()-&gt;createBlock('page/html')-&gt;setProductInfo($_product)-&gt;setTemplate('catalog/product/product_labels.phtml')-&gt;toHtml(); ?&gt;
                                  &lt;a href="&lt;?php echo $_product-&gt;getProductUrl() ?&gt;" title="&lt;?php echo $this-&gt;stripTags($_product-&gt;getName(), null, true) ?&gt;" class="product-image"&gt;
                                      &lt;span class="mask"&gt;&lt;/span&gt;
                                      &lt;?php 
                                          echo $_product-&gt;productHoverImage($this, 800); 
                                          $escaped_label = $this-&gt;stripTags($_product-&gt;getName(), null, true);
                                          echo '&lt;img '. $_product-&gt;getProductMediaResized(800, 'small_image')
                                              -&gt;addImageHtmlAttributte('alt', $escaped_label)
                                              -&gt;addImageHtmlAttributte('title', $escaped_label)
                                              -&gt;getImageHtmlAttributte().' /&gt;';
                                      ?&gt;
                                  &lt;/a&gt;
                                  &lt;div class="actions clearfix"&gt;
                                      &lt;?php if ($_product-&gt;isSaleable()): ?&gt;
                                          &lt;?php if($catalogMode == 0) { ?&gt;
                                              &lt;button type="button" title="&lt;?php echo Mage::helper('core')-&gt;quoteEscape($this-&gt;__('Add to Cart')); ?&gt;" class="btn btn-default pull-left" onclick="setLocation('&lt;?php echo $this-&gt;getAddToCartUrl($_product) ?&gt;')"&gt;&lt;span&gt;&lt;span&gt;&lt;i class="icon-basket"&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/button&gt;
                                          &lt;?php } ?&gt;
                                      &lt;?php else: ?&gt;
                                          &lt;a class="btn btn-default" href="&lt;?php echo $_product-&gt;getProductUrl() ?&gt;" title="&lt;?php echo Mage::helper('core')-&gt;quoteEscape($this-&gt;__('Read More')); ?&gt;"&gt;&lt;i class="icon-link"&gt;&lt;/i&gt;&lt;/a&gt;
                                      &lt;?php endif; ?&gt;
                                      &lt;?php if ($this-&gt;helper('wishlist')-&gt;isAllow()) : ?&gt;
                                          &lt;span class="link-wishlist-wrapper"&gt;&lt;a href="&lt;?php echo $this-&gt;getAddToWishlistUrl($_product) ?&gt;" class="link-wishlist" title="&lt;?php echo $this-&gt;__('Add to Wishlist'); ?&gt;"&gt;&lt;i class="icon-heart-fa"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/span&gt;
                                      &lt;?php endif; ?&gt;
                                      &lt;?php if($_compareUrl=$this-&gt;getAddToCompareUrl($_product)): ?&gt;
                                          &lt;span class="link-compare-wrapper"&gt;&lt;a href="&lt;?php echo $_compareUrl ?&gt;" class="link-compare" title="&lt;?php echo $this-&gt;__('Add to Compare'); ?&gt;"&gt;&lt;i class="icon-shuffle"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/span&gt;
                                      &lt;?php endif; ?&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                              &lt;h3 class="product-name"&gt;&lt;a href="&lt;?php echo $_product-&gt;getProductUrl() ?&gt;" title="&lt;?php echo $this-&gt;stripTags($_product-&gt;getName(), null, true) ?&gt;)"&gt;&lt;?php echo $this-&gt;helper('catalog/output')-&gt;productAttribute($_product, $_product-&gt;getName() , 'name') ?&gt;&lt;/a&gt;&lt;/h3&gt;
                              &lt;?php if($_product-&gt;isSaleable()): ?&gt;
                                  &lt;p class="availability in-stock"&gt;&lt;i class="icon-record"&gt;&lt;/i&gt;&lt;?php echo $this-&gt;__('Product') ?&gt; &lt;span&gt;&lt;?php echo $this-&gt;__('In stock') ?&gt;&lt;/span&gt;&lt;/p&gt;
                              &lt;?php else: ?&gt;
                                  &lt;p class="availability out-of-stock"&gt;&lt;i class="icon-record"&gt;&lt;/i&gt;&lt;?php echo $this-&gt;__('Product') ?&gt; &lt;span&gt;&lt;?php echo $this-&gt;__('Out of stock') ?&gt;&lt;/span&gt;&lt;/p&gt;
                              &lt;?php endif; ?&gt;
                              &lt;?php echo $this-&gt;getReviewsSummaryHtml($_product, 'short') ?&gt;
                              &lt;?php echo $this-&gt;getPriceHtml($_product, true, '-new') ?&gt;
                              &lt;?php if($timerStatus &amp;&amp; $timerListingStatus) {
                                  echo $this-&gt;getLayout()-&gt;createBlock('page/html')-&gt;setProduct($_product)-&gt;setTemplate('catalog/product/listing_timer.phtml')-&gt;toHtml();
                              } ?&gt;
                              &lt;hr class="indent-18 white-space"/&gt;
                          &lt;/li&gt;
                      &lt;?php endforeach; ?&gt;
                  &lt;/ul&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;?php endif; ?&gt;
  </code></pre>