1
如何在前端显示自定义选择器,以便它可以像存储切换器和/或语言切换器一样工作。 在左侧这里类似“面板工具”选项: http://demoleotheme.com/casper/index.php/?___store=defaultMagento - 在前端显示自定义选择器
主类
class Tm_StoreSettings_Model_Source_Types_Producttype
{
public function toOptionArray()
{
return array(
array('value' => 'layout_1', 'label'=>Mage::helper('adminhtml')->__('Layout 1')),
array('value' => 'layout_2', 'label'=>Mage::helper('adminhtml')->__('Layout 2')),
array('value' => 'layout_3', 'label'=>Mage::helper('adminhtml')->__('Layout 3'))
);
}
}