如何更改 Magento 中的前端支付方式标签?

How to change the frontend payment method label in Magento?

我添加了一种新的自定义付款方式。如果你注意到下图,里面没有标签。

我无法理解这些支付方式的标签从何而来。我试过改掉所有其他支付的匹配标签,改了所有这些变量对前端标签没有影响...

`grep -r "\SPurchase Order\S" .

./app/locale/en_US/Mage_Payment.csv:"Purchase Order","Purchase Order"
./app/code/core/Mage/Payment/etc/config.xml: <title>Purchase Order</title>
./app/code/core/Mage/Payment/etc/system.xml: <label>Purchase Order</label>

如何设置我丢失的付款标签?

要在前端更改支付方式标签,在管理面板中转到系统->配置->销售->支付方式->Select您要更改其标签的支付方式,然后在Title 字段,更改标签。

对于新的支付方式,我们需要在 config.xml

中定义一个字段
<fields>
    <!-- Other Fields -->
    <title>
         <label>Title</label>
         <label>Title</label>                                
         <frontend_type>text</frontend_type>                 
         <sort_order>10</sort_order>                         
         <show_in_default>1</show_in_default>                
         <show_in_website>1</show_in_website>                
         <show_in_store>1</show_in_store>                    
    </title>
    <!-- Other Fields -->
</fields>

最后从管理面板更改值。