开发者

how to create payment method per customer group using dynamic field

i want display selected payment method on checkout page for specific customer group using dymanic field . this is mycode from system config

<group id="general" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="开发者_JAVA技巧;1"
                   showInStore="1">
                <label>Configuration</label>
                <field id="enable" translate="label" type="select" sortOrder="2" showInDefault="1" showInWebsite="0" showInStore="0">
                    <label>Enable</label>
                    <source_model>Magento\Config\Model\Config\Source\Enabledisable</source_model>
                </field>
                <field id="dynamic_field" translate="label" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Payment Method</label>
                   <frontend_model>Vdcstore\PaymentMethod\Block\Adminhtml\Form\Field\Groups</frontend_model>
                <backend_model>Magento\Config\Model\Config\Backend\Serialized\ArraySerialized</backend_model>
                     <depends>
                        <field id="enable">1</field>
                    </depends>
                </field>
            </group>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜