Skip to content

Commit

Permalink
Update express checkout ui
Browse files Browse the repository at this point in the history
  • Loading branch information
leon-zhang-awx committed May 7, 2024
1 parent 193e639 commit 0a26b2a
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 11 deletions.
8 changes: 4 additions & 4 deletions Model/Config/Source/Express/ApplePay/ButtonType.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ public function toOptionArray()
'value' => 'order',
'label' => __('Order')
],
[
'value' => 'plain',
'label' => __('Plain')
],
// [
// 'value' => 'plain',
// 'label' => __('Plain')
// ],
[
'value' => 'reload',
'label' => __('Reload')
Expand Down
8 changes: 4 additions & 4 deletions Model/Config/Source/Express/GooglePay/ButtonType.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ public function toOptionArray()
'value' => 'pay',
'label' => __('Pay')
],
[
'value' => 'plain',
'label' => __('Plain')
],
// [
// 'value' => 'plain',
// 'label' => __('Plain')
// ],
[
'value' => 'subscribe',
'label' => __('Subscribe')
Expand Down
2 changes: 1 addition & 1 deletion etc/adminhtml/system/card.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<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/Disable</label>
<label>Enable</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>
Expand Down
4 changes: 2 additions & 2 deletions etc/adminhtml/system/express.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<label>Express Checkout</label>
<field id="active" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1"
canRestore="1">
<label>Enable/Disable</label>
<label>Enable</label>
<comment>
<![CDATA[Enable Express Checkout]]>
</comment>
Expand Down Expand Up @@ -43,7 +43,7 @@
<field id="active">1</field>
</depends>
</field>
<!-- <include path="Airwallex_Payments::system/express/apple_pay.xml"/>-->
<!-- <include path="Airwallex_Payments::system/express/apple_pay.xml"/> -->
<include path="Airwallex_Payments::system/express/google_pay.xml"/>
</group>
</include>
10 changes: 10 additions & 0 deletions view/frontend/web/css/airwallex_payment.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,13 @@
#co-payment-form .airwallex-express-checkout .express-title {
display: block;
}

@media screen and (min-width: 768px) {
@media (min-width: 769px), print {
.box-tocart .airwallex-express-checkout {
margin-bottom: 15px;
width: 49%;
min-width: 240px;
}
}
}

0 comments on commit 0a26b2a

Please sign in to comment.