【发布时间】:2013-05-30 17:49:44
【问题描述】:
我正在向模板 customer/form/edit.phtml 添加一个字段。我使用了这段代码:
<li>
<?php
$attribute = Mage::getModel('eav/config')->getAttribute('customer','code_magique');
?>
<label for="code_magique" class="<?php if($attribute->getIsRequired() == true){?>required<?php } ?>"><?php if($attribute->getIsRequired() == true){?><em>*</em><?php } ?><?php echo $this->__('Code') ?></label>
<div class="input-box">
<input type="text" name="code_magique" id="code_magique" value="<?php echo $this->htmlEscape($this->getCustomer()->getData("code_magique")) ?>" title="<?php echo $this->__('Code') ?>" class="input-text" />
</div>
</li>
这会显示一个包含我的“code_magique”属性的字段,但是当我尝试修改此属性时,它不起作用,我是不是忘记了什么?
【问题讨论】:
-
您将此输入添加到 magento 帐户仪表板的哪个部分?
-
“账户信息”一
标签: magento magento-1.7