Magento:结帐时不显示新的付款方式
我用的是Magento ver。1.6.2.0 我已经阅读了创建新支付方式的官方指南: 在目录app/etc/modules中,我创建了这个xml文件MyName\u MyModule: 和system.xml:Magento:结帐时不显示新的付款方式,magento,methods,payment,checkout,Magento,Methods,Payment,Checkout,我用的是Magento ver。1.6.2.0 我已经阅读了创建新支付方式的官方指南: 在目录app/etc/modules中,我创建了这个xml文件MyName\u MyModule: 和system.xml: <?xml version="1.0"?> <config> <sections> <payment> <groups> <mymodule translate="lab
<?xml version="1.0"?>
<config>
<sections>
<payment>
<groups>
<mymodule translate="label" module="payment">
<label>My Module</label>
<sort_order>670</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>0</show_in_store>
<fields>
<active translate="label">
<label>Enabled</label>
<frontend_type>select</frontend_type>
<source_model>adminhtml/system_config_source_yesno</source_model>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>0</show_in_store>
</active>
<title translate="label">
<label>Title</label>
<frontend_type>text</frontend_type>
<sort_order>6</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>0</show_in_store>
</title>
</fields>
</mymodule>
</groups>
</payment>
</sections>
问题是:
我在小组管理中看到了付款方式
我在system/advanced中也看到了它
当我启用付款方式并尝试购买东西时,
我在付款信息中看不到它
我只看到两个单选按钮:
支票/汇票
信用卡储蓄
手动清除缓存,并从管理面板禁用缓存
添加默认值:
<!-- declare default configuration values for this module -->
<default>
<!-- 'payment' configuration section (tab) -->
<payment>
<!-- 'newmodule' configuration group (fieldset) -->
<mymodule>
<!-- by default this payment method is inactive -->
<active>1</active>
<!-- model to handle logic for this payment method -->
<model>mymodule/paymentMethod</model>
<!-- order status for new orders paid by this payment method -->
<order_status>pending</order_status>
<!-- default title for payment checkout page and order view page -->
<title>My Module</title>
<payment_action>authorize</payment_action>
<allowspecific>0</allowspecific>
</mymodule>
</payment>
</default>
还是不行 您忘了添加配置xml
<default>
<!-- 'payment' configuration section (tab) -->
<payment>
<!-- 'newmodule' configuration group (fieldset) -->
<newmodule>
<!-- by default this payment method is inactive -->
<active>0</active>
<!-- model to handle logic for this payment method -->
<model>newmodule/paymentMethod</model>
<!-- order status for new orders paid by this payment method -->
<order_status>pending</order_status>
<!-- default title for payment checkout page and order view page -->
<title>Credit Card (Authorize.net)</title>
<cctypes>AE,VI,MC,DI</cctypes>
<payment_action>authorize</payment_action>
<allowspecific>0</allowspecific>
</newmodule>
</payment>
</default>
如果没有此选项,您将无法在付款页面上看到付款选项
希望这一定能解决您的问题。希望这会有所帮助。我认为您的config.xml文件缺少一些配置。请参阅此链接添加的默认设置。。。不行!那么,有什么对你有用的吗?如果是,你能分享吗?@Gi Gu,我相信我的答案肯定会帮助你,如果你能接受我的答案,我会很高兴
<!-- declare default configuration values for this module -->
<default>
<!-- 'payment' configuration section (tab) -->
<payment>
<!-- 'newmodule' configuration group (fieldset) -->
<mymodule>
<!-- by default this payment method is inactive -->
<active>1</active>
<!-- model to handle logic for this payment method -->
<model>mymodule/paymentMethod</model>
<!-- order status for new orders paid by this payment method -->
<order_status>pending</order_status>
<!-- default title for payment checkout page and order view page -->
<title>My Module</title>
<payment_action>authorize</payment_action>
<allowspecific>0</allowspecific>
</mymodule>
</payment>
</default>
<default>
<!-- 'payment' configuration section (tab) -->
<payment>
<!-- 'newmodule' configuration group (fieldset) -->
<newmodule>
<!-- by default this payment method is inactive -->
<active>0</active>
<!-- model to handle logic for this payment method -->
<model>newmodule/paymentMethod</model>
<!-- order status for new orders paid by this payment method -->
<order_status>pending</order_status>
<!-- default title for payment checkout page and order view page -->
<title>Credit Card (Authorize.net)</title>
<cctypes>AE,VI,MC,DI</cctypes>
<payment_action>authorize</payment_action>
<allowspecific>0</allowspecific>
</newmodule>
</payment>
</default>