Skip to content

Commit

Permalink
https://github.com/mage2pro/alphacommercehub/issues/27
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Dec 12, 2017
1 parent 333c263 commit 72fae90
Showing 1 changed file with 170 additions and 55 deletions.
225 changes: 170 additions & 55 deletions etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -382,31 +382,6 @@ So the `sortOrder` value is 1920. -->
<config_path>df_payment/alpha_commerce_hub/currency</config_path>
<depends><field id='enable'>1</field></depends>
</field>
<field
id='actionForNew'
showInDefault='1' showInStore='1' showInWebsite='1'
sortOrder='26'
translate='label'
type='select'
>
<comment><![CDATA[A customer is regarded as <b>new</b>, if he does not have any order in the «Completed» or «Processing» state.]]></comment>
<config_path>df_payment/alpha_commerce_hub/actionForNew</config_path>
<depends><field id='enable'>1</field></depends>
<label>Payment Action for a New Customer</label>
<source_model>Df\Payment\Source\ACR</source_model>
</field>
<field
id='actionForReturned'
showInDefault='1' showInStore='1' showInWebsite='1'
sortOrder='27'
translate='label'
type='select'
>
<config_path>df_payment/alpha_commerce_hub/actionForReturned</config_path>
<depends><field id='enable'>1</field></depends>
<label>Payment Action for a Returned Customer</label>
<source_model>Df\Payment\Source\ACR</source_model>
</field>
<field
id='description'
showInDefault='1' showInStore='1' showInWebsite='1'
Expand Down Expand Up @@ -451,36 +426,6 @@ So the `sortOrder` value is 1920. -->
<config_path>df_payment/alpha_commerce_hub/requireBillingAddress</config_path>
<depends><field id='enable'>1</field></depends>
</field>
<field
id='min_order_total'
translate='label'
type='text'
sortOrder='31'
showInDefault='1'
showInWebsite='1'
showInStore='1'
>
<label>Minimum Order Total</label>
<comment><![CDATA[]]></comment>
<config_path>df_payment/alpha_commerce_hub/min_order_total</config_path>
<validate>validate-number validate-greater-than-zero</validate>
<depends><field id='enable'>1</field></depends>
</field>
<field
id='max_order_total'
translate='label'
type='text'
sortOrder='32'
showInDefault='1'
showInWebsite='1'
showInStore='1'
>
<label>Maximum Order Total</label>
<comment><![CDATA[]]></comment>
<config_path>df_payment/alpha_commerce_hub/max_order_total</config_path>
<validate>validate-number validate-greater-than-zero</validate>
<depends><field id='enable'>1</field></depends>
</field>
<field
id='country_restriction'
translate='label'
Expand Down Expand Up @@ -520,6 +465,176 @@ So the `sortOrder` value is 1920. -->
</depends>
</field>
</group>
<group
id='card'
showInDefault='1' showInStore='1' showInWebsite='1'
sortOrder='2'
translate='label'
>
<label>Bank Card</label>
<comment><![CDATA[]]></comment>
<field
id='enable'
showInDefault='1' showInStore='1' showInWebsite='1'
sortOrder='1'
translate='label'
type='Df\Framework\Form\Element\Checkbox'
>
<backend_model>Df\Config\Backend\Checkbox</backend_model>
<comment><![CDATA[Enable the bank card payment option?]]></comment>
<label>Enable?</label>
</field>
<field
id='title'
showInDefault='1' showInStore='1' showInWebsite='1'
sortOrder='2'
translate='label'
type='text'
>
<comment><![CDATA[It is shown on the checkout screen.]]></comment>
<depends><field id='enable'>1</field></depends>
<label>A title for the bank card payment option</label>
<validate>required-entry</validate>
</field>
<field
id='actionForNew'
showInDefault='1' showInStore='1' showInWebsite='1'
sortOrder='3'
translate='label'
type='select'
>
<comment><![CDATA[A customer is regarded as <b>new</b>, if he does not have any order in the «Completed» or «Processing» state.]]></comment>
<config_path>df_payment/alpha_commerce_hub/actionForNew</config_path>
<depends><field id='enable'>1</field></depends>
<label>Payment Action for a New Customer</label>
<source_model>Df\Payment\Source\ACR</source_model>
</field>
<field
id='actionForReturned'
showInDefault='1' showInStore='1' showInWebsite='1'
sortOrder='4'
translate='label'
type='select'
>
<config_path>df_payment/alpha_commerce_hub/actionForReturned</config_path>
<depends><field id='enable'>1</field></depends>
<label>Payment Action for a Returned Customer</label>
<source_model>Df\Payment\Source\ACR</source_model>
</field>
<field
id='min_order_total'
showInDefault='1' showInStore='1' showInWebsite='1'
sortOrder='5'
translate='label'
type='text'
>
<comment><![CDATA[]]></comment>
<depends><field id='enable'>1</field></depends>
<label>Minimum Order Total</label>
<validate>validate-number validate-greater-than-zero</validate>
</field>
<field
id='max_order_total'
showInDefault='1' showInStore='1' showInWebsite='1'
sortOrder='6'
translate='label'
type='text'
>
<comment><![CDATA[]]></comment>
<depends><field id='enable'>1</field></depends>
<label>Maximum Order Total</label>
<validate>validate-number validate-greater-than-zero</validate>
</field>
<group
id='3ds'
showInDefault='1' showInStore='1' showInWebsite='1'
sortOrder='35'
translate='label'
>
<label>3D Secure</label>
<depends><field id='enable'>1</field></depends>
<field
id='enabled'
showInDefault='1' showInStore='1' showInWebsite='1'
sortOrder='1'
translate='label'
type='Df\Framework\Form\Element\Checkbox'
>
<label>Whether the 3D Secure validation is enabled for your merchant account in AlphaCommerceHub?</label>
<backend_model>Df\Config\Backend\Checkbox</backend_model>
<comment><![CDATA[Unfortunately, AlphaCommerceHub <a href='https://mage2.pro/t/topic/4857/5' target='_blank'>does not allow</a> to enable the 3D Secure validation from the Magento side: it should be enabled in your AlphaCommerceHub merchant account.]]></comment>
</field>
<field
id='forReturning'
showInDefault='1' showInStore='1' showInWebsite='1'
sortOrder='2'
translate='label'
type='Df\Framework\Form\Element\Checkbox'
>
<label>Disable the 3D Secure validation for the returning customers?</label>
<backend_model>Df\Config\Backend\Checkbox</backend_model>
<comment><![CDATA[A customer is regarded as <b>returning</b>, if he has any orders in the «Completed» or «Processing» state.]]></comment>
<depends><field id='enabled'>1</field></depends>
</field>
<field
id='forShippingDestinations'
showInDefault='1' showInStore='1' showInWebsite='1'
sortOrder='3'
translate='label'
type='select'
>
<label>Disable 3D Secure validation for particular shipping destinations?</label>
<source_model>Df\Config\Source\NoWhiteBlack\Specified</source_model>
<depends><field id='enabled'>1</field></depends>
</field>
<field
id='forShippingDestinations_countries'
showInDefault='1' showInStore='1' showInWebsite='1'
sortOrder='4'
translate='label'
type='Df\Framework\Form\Element\Multiselect'
>
<label>Countries</label>
<can_be_empty>1</can_be_empty>
<depends>
<field id='enabled'>1</field>
<!-- 2016-03-08 «The negative syntax for a backend config field <depends> condition»:
https://mage2.pro/t/329 -->
<field id='forShippingDestinations' negative='1'>0</field>
</depends>
<source_model>Magento\Directory\Model\Config\Source\Country</source_model>
</field>
<field
id='forIPs'
showInDefault='1' showInStore='1' showInWebsite='1'
sortOrder='5'
translate='label'
type='select'
>
<label>Disable 3D Secure validation for particular customer locations (detected by IP Address)?</label>
<depends><field id='enabled'>1</field></depends>
<source_model>Df\Config\Source\NoWhiteBlack\Specified</source_model>
</field>
<field
id='forIPs_countries'
showInDefault='1' showInStore='1' showInWebsite='1'
sortOrder='6'
translate='label'
type='Df\Framework\Form\Element\Multiselect'
>
<label>Countries</label>
<can_be_empty>1</can_be_empty>
<depends>
<field id='enabled'>1</field>
<!-- 2016-03-08
«The negative syntax for a backend config field <depends> condition»
https://mage2.pro/t/329 -->
<field id='forIPs' negative='1'>0</field>
</depends>
<source_model>Magento\Directory\Model\Config\Source\Country</source_model>
</field>
</group>
</group>
</group>
</section>
</system>
Expand Down

0 comments on commit 72fae90

Please sign in to comment.