doutan1637 2013-12-13 10:25
浏览 16

在magento主页上只有4个产品在一行显示,如何在一行中显示6个产品?

I'm using magento 1.7.0. I have installed a plugins for best seller and latest order products. but the problem is its only showing 4 products on each row but to occupy the complete width on home page I want to display 6 products on each row. I saw its phtml file it has only this much code

 <?php echo $this->getLayout()->createBlock('catalogextensions/lastordered_home_list')->setTemplate('catalog/product/list.phtml')->toHtml(); ?>
  • 写回答

1条回答 默认 最新

  • 普通网友 2013-12-13 11:21
    关注

    Extension may have set the columncount somewhere in the listing file or layout. You need to change it to from 4 to 6. You will ind code like this -

    <?php $_columnCount = $this->getColumnCount(); 
    $_columnCount = 4;
    ?>
    
    OR 
    
    <action method="setColumnCount"><count>4</count></action>
    
    评论

报告相同问题?

悬赏问题

  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 正弦信号发生器串并联电路电阻无法保持同步怎么办
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 个人网站被恶意大量访问,怎么办
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)