Magento 新配置选项卡中的新付款方式
我想要做的就是添加新的自定义付款方式并使其在新的配置选项卡中可用,而不是“销售/付款方式”。
例如,我希望在管理配置中的“公司名称/方法1”下设置我的付款方式,而不是在“销售/付款方式”下设置一个组。
我的问题就出现在这里。我可以设置 system.xml 文件以拥有一个新选项卡以及其下的模块选项。但是当我更改 config.xml 时,我的付款方式不再显示在结帐页面中。
当我更改为自定义选项卡名称时,它无法显示在结账中。有什么想法吗?
<default>
<payment>
<spos>
<active>0</active>
<model>spos/payment</model>
<order_status>1</order_status>
<title>SPos</title>
<payment_action>authorize</payment_action>
<allowspecific>0</allowspecific>
</spos>
</payment>
</default>
All I want to do is to add a new custom payment method and make it available in a new configuration tab, instead of "Sales/Payment Methods".
For example I want to have my payment method under "CompanyName/Method1" in admin configuration instead of having a group under "Sales/Payment Methods".
My problem arises here. I can set up the system.xml file to have a new tab and my module options under it. But when I change config.xml, my payment method does not show up in the chekout page anymore.
When I change to my custom tab name, it fails to show up in checkout. Any ideas?
<default>
<payment>
<spos>
<active>0</active>
<model>spos/payment</model>
<order_status>1</order_status>
<title>SPos</title>
<payment_action>authorize</payment_action>
<allowspecific>0</allowspecific>
</spos>
</payment>
</default>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
http://alanstorm.com/custom_magento_system_configuration
这样会对您有所帮助。
http://alanstorm.com/custom_magento_system_configuration
This like will helps you.
我认为你需要显示你的 config.xml 和 system.xml。我已经尝试过,我的 xml 如下:
System.xml
Config.xml
希望这可以帮助您。检查这些 xml 并进行比较。
I think you need to show your config.xml and system.xml. I have tried for this and my xmls are as follows:
System.xml
Config.xml
Hope this may help you. Check these xmls and compare it..
您必须将
payment/[YourGroupName]/[FieldName]
节点添加到新组部分下的每个新付款字段。因此,您的 system.xml 文件中的字段如下所示:
Magento 中的 PayPal 模块是检查、学习和查找付款方式新内容的一个很好的参考。
You must add
<config_path>payment/[YourGroupName]/[FieldName]</config_path>
node to each new payment's field which is under your new group section.So your fields are something look like this in your system.xml file:
PayPal module in Magento is a vary good reference to check, learn and find new things for payment methods.