Skip to content

Commit

Permalink
Update display text in admin page to improve user clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
leon-zhang-awx committed May 6, 2024
1 parent 62b37c9 commit f85b5b8
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 24 deletions.
5 changes: 3 additions & 2 deletions etc/adminhtml/system/card.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
<group id="card" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Credit Card</label>
<field id="active" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" canRestore="1">
<label>Enable</label>
<label>Enable/Disable</label>
<comment>Enable Credit Card</comment>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<config_path>payment/airwallex_payments_card/active</config_path>
</field>
Expand All @@ -29,7 +30,7 @@
<config_path>payment/airwallex_payments_card/title</config_path>
</field>
<field id="airwallex_payment_action" translate="label" type="select" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Payment Action</label>
<label>Capture Preferences</label>
<source_model>Airwallex\Payments\Model\Config\Source\PaymentAction</source_model>
<config_path>payment/airwallex_payments_card/airwallex_payment_action</config_path>
</field>
Expand Down
29 changes: 16 additions & 13 deletions etc/adminhtml/system/express.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,16 @@
<label>Express Checkout</label>
<field id="active" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1"
canRestore="1">
<label>Enable</label>
<label>Enable/Disable</label>
<comment>
<![CDATA[Enable Express Checkout]]>
</comment>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<config_path>payment/airwallex_payments_express/active</config_path>
</field>
<field id="airwallex_payment_action" translate="label" type="select" sortOrder="30" showInDefault="1"
showInWebsite="0" showInStore="0">
<label>Payment Action</label>
<source_model>Airwallex\Payments\Model\Config\Source\PaymentAction</source_model>
<config_path>payment/airwallex_payments_express/airwallex_payment_action</config_path>
<depends>
<field id="active">1</field>
</depends>
</field>
<field id="locations" translate="label" type="multiselect" sortOrder="5" showInDefault="1" showInWebsite="1"
showInStore="1">
<label>Locations</label>
<label>Show Button On</label>
<source_model>Airwallex\Payments\Model\Config\Source\Express\DisplayArea</source_model>
<config_path>payment/airwallex_payments_express/display_area</config_path>
<depends>
Expand All @@ -31,15 +25,24 @@
</field>
<field id="seller_name" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1"
showInStore="1">
<label>Seller name</label>
<label>Store Name</label>
<comment>
<![CDATA[This is the text that appears as PAY SELLER NAME in the payment modal.]]>
<![CDATA[The store name your shoppers will see during payment]]>
</comment>
<config_path>payment/airwallex_payments_express/seller_name</config_path>
<depends>
<field id="active">1</field>
</depends>
</field>
<field id="airwallex_payment_action" translate="label" type="select" sortOrder="30" showInDefault="1"
showInWebsite="0" showInStore="0">
<label>Capture Preferences</label>
<source_model>Airwallex\Payments\Model\Config\Source\PaymentAction</source_model>
<config_path>payment/airwallex_payments_express/airwallex_payment_action</config_path>
<depends>
<field id="active">1</field>
</depends>
</field>
<!-- <include path="Airwallex_Payments::system/express/apple_pay.xml"/>-->
<include path="Airwallex_Payments::system/express/google_pay.xml"/>
</group>
Expand Down
4 changes: 2 additions & 2 deletions etc/adminhtml/system/express/apple_pay.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
<group id="apple_pay" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Apple Pay</label>
<field id="button_theme" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Button theme</label>
<label>Button Theme</label>
<source_model>Airwallex\Payments\Model\Config\Source\Express\ApplePay\ButtonTheme</source_model>
<config_path>payment/airwallex_payments_express/apple_pay_button_theme</config_path>
</field>
<field id="button_type" translate="label" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Button type</label>
<label>Call To Action</label>
<source_model>Airwallex\Payments\Model\Config\Source\Express\ApplePay\ButtonType</source_model>
<config_path>payment/airwallex_payments_express/apple_pay_button_type</config_path>
</field>
Expand Down
14 changes: 7 additions & 7 deletions etc/adminhtml/system/express/google_pay.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
<group id="google_pay" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Google Pay</label>
<field id="button_theme" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Button theme</label>
<label>Button Theme</label>
<source_model>Airwallex\Payments\Model\Config\Source\Express\GooglePay\ButtonTheme</source_model>
<config_path>payment/airwallex_payments_express/google_pay_button_theme</config_path>
</field>
<field id="button_type" translate="label" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Button type</label>
<label>Call To Action</label>
<source_model>Airwallex\Payments\Model\Config\Source\Express\GooglePay\ButtonType</source_model>
<config_path>payment/airwallex_payments_express/google_pay_button_type</config_path>
</field>
<field id="sort_order" translate="label" type="text" sortOrder="210" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Sort Order</label>
<frontend_class>validate-number</frontend_class>
<config_path>payment/airwallex_payments_express/google_pay_sort_order</config_path>
</field>
<!-- <field id="sort_order" translate="label" type="text" sortOrder="210" showInDefault="1" showInWebsite="1" showInStore="1">-->
<!-- <label>Sort Order</label>-->
<!-- <frontend_class>validate-number</frontend_class>-->
<!-- <config_path>payment/airwallex_payments_express/google_pay_sort_order</config_path>-->
<!-- </field>-->
</group>
</include>

0 comments on commit f85b5b8

Please sign in to comment.