我使用的是magento 1.7.0。我已经为畅销书和最新订单产品安装了插件。但问题是它每行只显示4个产品,但为了占据主页的整个宽度,我想每行显示6个产品。我看到了它的phtml文件,它只有这么多代码
<?php echo $this->getLayout()->createBlock('catalogextensions/lastordered_home_list')->setTemplate('catalog/product/list.phtml')->toHtml(); ?>
Extension可能在列表文件或布局中的某个位置设置了列计数。您需要将其从4更改为6。你会发现这样的代码-
<?php $_columnCount = $this->getColumnCount();
$_columnCount = 4;
?>
OR
<action method="setColumnCount"><count>4</count></action>