小编use*_*031的帖子

在magento的管理面板中为网格中的特殊价格添加新列

我正在设计Magento 1.4.2中的管理模块.我正在开发一个显示产品详细信息(产品名称,SKU,价格,特价,数量)的网格布局,我显示了所有列.我无法弄清楚如何在一列中显示特价.我无法检索特价.帮我解决这个问题.

我用这个代码来获取价格.

$collection->joinAttribute('price', 'catalog_product/price', 'entity_id', null, 'left', $store->getId());
Run Code Online (Sandbox Code Playgroud)

这段代码我用来为价格添加一列.

$this->addColumn('price', array(
            'header'    => Mage::helper('catalog')->__('Price'),
            'type'  => 'number',
            'width'     => '1',
            'currency_code' =(string)Mage::getStoreConfig(Mage_Directory_Model_Currency::XML_PATH_CURRENCY_BASE),
            'index'     => 'price',
         'editable' =>true
            ));
Run Code Online (Sandbox Code Playgroud)

但我不能以特价来做同样的事情.

php magento mage e-commerce

3
推荐指数
1
解决办法
5637
查看次数

标签 统计

e-commerce ×1

mage ×1

magento ×1

php ×1