Commit 9cc27dcd authored by acampos1916's avatar acampos1916

[PW-2212]: New installments config field to replace old row UI

* New config path has been created to avoid overwriting old formatted values
parent 7aba083e
...@@ -77,20 +77,17 @@ ...@@ -77,20 +77,17 @@
<tooltip>Enable installments for each credit card type.</tooltip> <tooltip>Enable installments for each credit card type.</tooltip>
<config_path>payment/adyen_cc/enable_installments</config_path> <config_path>payment/adyen_cc/enable_installments</config_path>
</field> </field>
<field id="installments" translate="label" sortOrder="220" showInDefault="1" showInWebsite="1" <field id="installments" type="textarea" translate="label" sortOrder="220" showInDefault="1"
showInStore="1"> showInWebsite="1" showInStore="1">
<label>Installments</label> <label>Installments</label>
<depends> <depends>
<field id="enable_installments">1</field> <field id="enable_installments">1</field>
</depends> </depends>
<tooltip>Configure your installment for each credit card type: Insert the minimum amount required to <validate>required-entry</validate>
make the configured installment available in the amount range column. <comment><![CDATA[
Example: if the amount range is configured to 100 and the number of installments to 4x, the shopper Generate the desired installments configuration <a href="">here</a> and paste it on this field.
will see the 4x option only if the payment total is higher or equal than 100. ]]></comment>
</tooltip> <config_path>payment/adyen_cc/installments_code</config_path>
<frontend_model>Adyen\Payment\Block\Adminhtml\System\Config\Field\Installments</frontend_model>
<backend_model>Adyen\Payment\Model\Config\Backend\Installments</backend_model>
<config_path>payment/adyen_cc/installments</config_path>
</field> </field>
</group> </group>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment