在magento中将客户属性显示到前端


Display Customers attribute to frontend in magento

我是magento的新手,我从magento后端创建了一个属性语言。通过遵循这一点。客户>属性经理

属性具有一个输入类型下拉列表。

我想在我的前端phtml文件中显示这一点,以接受用户的输入。

我怎么能做到这一点。

感谢

试试这个

$attribute = Mage::getModel('eav/config')->getAttribute('catalog_product', 'language'); //here, "language" is the attribute_code
$allOptions = $attribute->getSource()->getAllOptions(true, true);
foreach ($allOptions as $instance) {
    $myArray[$instance['value']] = $instance['label'];
}
print_r(($myArray));