English 中文(简体)
我怎么能为Magento的客户建立一页的网页?
原标题:How can I create sub page for customer like address page in Magento?

我为客户增加了额外的客户领域。 现在,我想将这些额外领域放在我的账户网页上。 我如何能够这样做?

最佳回答

you will need to copy the file app/design/frontend/base/default/template/customer/form/edit.phtml to app/design/frontend/default/default/template/customer/form/edit.phtml then add an input file or else inside it. Here an example (the code is customized, so adapt to your situation):

 <label for="language" class="required"><em>*</em><?php echo Mage::helper( customer )->__( My language ) ?></label>
 <div class="input-box">
 <input type="text" value="<?php echo $this->getCustomer()->getLanguage(); ?>" id="language" name="language" />
 </div>
问题回答

暂无回答




相关问题
Magento addFieldToFilter allow NULLs

When using the Magento collection method addFieldToFilter is it possible to allow filtering by NULL values? I want to select all the products in a collection that have a custom attribute even if no ...

Get product link from Magento API

I am new to Magento and using their API. I need to be able to get the product url from the API call. I see that I can access the url_key and url_path, but unfortunately that s not necessarily what ...

magento extension installation

I want to install a Magento extension in WAMP, but not from the Magento connect system. How can I do this? I have the module (extension) code and I already installed the sample data in the Magento ...

Link to a specific step in onepage checkout

Is it possible to redirect the browser to nth step in the onepage checkout? If so, how would one go about doing it? I m working on a payment module and have a sort of "cancel" action that i would ...

How do I filter a collection by a YesNo type attribute?

I have a ‘featured’ attribute, which has a Yes/No select-list as the admin input. I presume that the values for Yes and No are 1 and 0, as they are for every other Yes/No list. However, if I try and ...

热门标签