Magento有个热门商品的插件,但是那个插件不显示产品的销售数量,现在分享下能够指定分类,显示销售数量的方法。 新建一个block,内容: totalPerPage = ($this->show_total) ? $this->show_total : 8; $counter = 1; $catalogid = Mage::getSingleton('catalog/layer')->getCurrentCategory()->getId(); $catalogid=($catalogid…
Magento有个热门商品的插件,但是那个插件不显示产品的销售数量,现在分享下能够指定分类,显示销售数量的方法。 新建一个block,内容: totalPerPage = ($this->show_total) ? $this->show_total : 8; $counter = 1; $catalogid = Mage::getSingleton('catalog/layer')->getCurrentCategory()->getId(); $catalogid=($catalogid…