在magento中编辑帐户信息中心中的地址

时间:2013-01-18 16:16:15

标签: magento magento-1.6

任何人都可以告诉我你如何编辑magento的这部分我试图改变前缀的T:和F:在电话和传真线中。

enter image description here

address.phtml调用<?php echo $this->getPrimaryBillingAddressHtml() ?>

这是一种方法:

public function getPrimaryBillingAddressHtml()
{
    $address = $this->getCustomer()->getPrimaryBillingAddress();

    if ($address instanceof Varien_Object) {
        return $address->format('html');
    } else {
        return Mage::helper('customer')->__('You have not set a default billing address.');
    }
}
课程Mage_Customer_Block_Account_Dashboard_Address

中的

然后我没有想法....我无法锻炼什么是打印这个以及如何改变它??

2 个答案:

答案 0 :(得分:4)

管理员中的

system > config > (customers) customer configuration > address templates您将找到该地址的所有模板。在您的特定情况下,您想要编辑HTML

答案 1 :(得分:1)

尝试使用此扩展程序: https://www.magentocommerce.com/magento-connect/one-page-account.html

此扩展程序允许客户在一个页面中更改所有联系信息

也许会有用