2013-07-31 43 views
1

我卸載的擴展,之後,將所有的類別頁面顯示我的產品圖片的大小調整爲135x135,而不是209x209。我檢查了list.phtml這是我發現:Magento的產品圖片大小調整不

<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this- >stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(209); ?>" width="209" height="209" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a> 

雖然這看起來我的權利,我也覺得這似乎是我無法找到規則的任何來源的罪魁禍首隨機的CSS屬性。

img[Attributes Style] { 
width: 135px; 
height: 135px; 
} 

你可以看到我的問題here

+0

你使用什麼擴展和卸載 –

+0

你確定你看正確的'list.phtml'文件?很可能是一個擴展名覆蓋了它,因爲你網站上的圖像已被清晰地調整爲135x135(你可以在文件路徑中看到'135x'),並且有一個'width'和'height '屬性135. – giaour

+0

@ VIVEK-MDU我卸載了「Delete Orders」[看這裏](http://www.magentocommerce.com/magento-connect/delete-order-3590.html) – thadw

回答

0

的擴展覆蓋的產品列表中選擇模板,讓你修改的文件(list.phtml)實際上不是什麼表示。

如果您有任何影響產品列表頁面的擴展,請檢查它們是否在佈局xml文件中有任何內容,如下所示:<action method="setTemplate"><template>XXX.phtml</template></action>

0

這是懶惰trick..use軟件在文件功能搜索文本,然後嘗試用搜索關鍵字搜索「調整(135」