Led*_*key 1 magento magento-1.6
谁能告诉我您如何编辑 magento 的这一部分,我正在尝试更改电话和传真线路中前缀的 T: 和 F:。
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.');
}
}
Run Code Online (Sandbox Code Playgroud)
在班上 Mage_Customer_Block_Account_Dashboard_Address
然后我用完了想法......我无法锻炼打印这个以及如何改变它......?
在管理员中:system > config > (customers) customer configuration > address templates
您将找到该地址的所有模板。在您的特定情况下,您想要编辑 HTML 之一