Magento产品页面调整大小

时间:2016-09-28 09:30:37

标签: magento

http://dev.factorydirectmedical.com/wheelchairs?mode=grid这是我的产品页面,我想调整图片大小。我使用Magento开发人员选项来提示模板路径。这是一个截图,(http://www.awesomescreenshot.com/image/1645297/4998c8379ebab36e77cab59c1a9c3bd5),我找到了HTML文件,但我无法修复此图片框。

List.phtml

Object

new.phtml

<?php
/**
 * @package     be
 * @copyright   Copyright (c) 2010-2015 MeigeeTeam. (http://www.meigeeteam.com)
 */
?>
<?php
/**
 * Product list template
 *
 * @see Mage_Catalog_Block_Product_List
 */
?>
<?php
    $_productCollection=$this->getLoadedProductCollection();
    $_helper = $this->helper('catalog/output');
    $meigeeOptions = $this->getLayout();
    $gridColumns = $meigeeOptions->getMConfigResultByAlias('listing_columns');
    $productType = $meigeeOptions->getMConfigResultByAlias('listing_product_type');
    $listType = $meigeeOptions->getMConfigResultByAlias('listing_list_type');
    $grid_indents = $meigeeOptions->getMConfigResultByAlias('listing_indents');
?>
<?php if(!$_productCollection->count()): ?>
<p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
<?php else: ?>
<div class="category-products">
    <?php echo $this->getToolbarHtml() ?>
    <?php // List mode ?>
    <?php if($this->getMode()!='grid'): ?>

    <ol class="products-list" id="products-list">
    <?php foreach ($_productCollection as $_product): ?>
        <?php echo $this->getLayout()->createBlock('page/html')->setProductInfo($_product)->setProductList($this)->setIterator($this)->setTemplate($listType)->toHtml(); ?>
    <?php endforeach; ?>
    </ol>
    <script type="text/javascript">decorateList('products-list', 'none-recursive')</script>
    <?php else: ?>
    <?php // Grid Mode ?>

    <ul class="products-grid row <?php echo $gridColumns.''.($grid_indents != 1 ? ' no-indents' : ''); ?>">
        <?php foreach ($_productCollection as $_product): ?>
            <?php echo $this->getLayout()->createBlock('page/html')->setProductInfo($_product)->setProductList($this)->setTemplate($productType)->toHtml(); ?>
        <?php endforeach ?>
     </ul>
    <script type="text/javascript">
        decorateGeneric($$('ul.products-grid'), ['odd','even','first','last']);
    </script>
    <?php endif; ?>
    <div class="toolbar-bottom">
        <?php echo $this->getToolbarHtml() ?>
    </div>


    <script type="text/javascript">
        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();
            }
        });
    </script>

    <?php if(Mage::app()->getLayout()->getBlock('ajaxkit')->issetSubmodulesConfig('general_toolbar')) { ?>
        <div class="infinite-scroll-elements">
            <div class="infinite-scroll-loader"><div></div></div>
            <div class="infinite-scroll-button" id="StaticScrollBtn"><?php echo $this->__('Show More Products'); ?></div>
        </div>
    <?php } ?>
</div>
<?php endif; ?>
<?php
// Provides a block where additional page components may be attached, primarily good for in-page JavaScript
if ($this->getChild('after')){
    $_afterChildren = $this->getChild('after')->getSortedChildren();
    foreach ($_afterChildren as $_afterChildName){
        $_afterChild = $this->getChild('after')->getChild($_afterChildName);
        //set product collection on after blocks
        $_afterChild->setProductCollection($_productCollection);
        echo $_afterChild->toHtml();
    }
}
?>

1 个答案:

答案 0 :(得分:0)

图片来自list.phtml 可能会使用其他方法来获取此图像。如果您无法找到图片,请提供list.phtml文件代码