Skip to content

Commit

Permalink
[PT-1438] Added sort order to plugin configuration (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
tikohov20 authored May 27, 2024
1 parent 9d496f9 commit d730a7d
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "mondu_gmbh/magento2-payment",
"description": "Mondu payment method for magento 2",
"type": "magento2-module",
"version": "2.3.6",
"version": "2.3.7",
"license": [
"MIT"
],
Expand Down
31 changes: 30 additions & 1 deletion etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,36 @@
<source_model>Magento\Directory\Model\Config\Source\Country</source_model>
<config_path>payment/mondu/specificcountry</config_path>
</field>
<field id="debug" translate="label" type="select" sortOrder="17" showInDefault="1" showInWebsite="1"

<field id="mondusortorder" translate="label" type="text" sortOrder="16" showInDefault="1" showInWebsite="1"
showInStore="1">
<label>Bank Transfer Sort Order</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<config_path>payment/mondu/sort_order</config_path>
</field>

<field id="mondusepasortorder" translate="label" type="text" sortOrder="17" showInDefault="1" showInWebsite="1"
showInStore="1">
<label>SEPA Direct Debit Sort Order</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<config_path>payment/mondusepa/sort_order</config_path>
</field>

<field id="monduinstallmentsortorder" translate="label" type="text" sortOrder="18" showInDefault="1" showInWebsite="1"
showInStore="1">
<label>Split Payments Sort Order</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<config_path>payment/monduinstallment/sort_order</config_path>
</field>

<field id="monduinstallmentbyinvoicesortorder" translate="label" type="text" sortOrder="19" showInDefault="1" showInWebsite="1"
showInStore="1">
<label>Installments By Invoice Sort Order</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<config_path>payment/monduinstallmentbyinvoice/sort_order</config_path>
</field>

<field id="debug" translate="label" type="select" sortOrder="20" showInDefault="1" showInWebsite="1"
showInStore="1">
<label>Enable Logs</label>
<config_path>payment/mondu/debug</config_path>
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Mondu_Mondu" setup_version="2.3.6">
<module name="Mondu_Mondu" setup_version="2.3.7">
<sequence>
<module name="Magento_Sales"/>
<module name="Magento_Payment"/>
Expand Down

0 comments on commit d730a7d

Please sign in to comment.