Skip to content

Commit d9f845d

Browse files
committed
MC-33420: PayPal button disappears when enable Customize Button
1 parent 5bce451 commit d9f845d

File tree

2 files changed

+0
-40
lines changed

2 files changed

+0
-40
lines changed

app/code/Magento/Paypal/Model/System/Config/Source/ButtonStyles.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,6 @@ public function getShape(): array
5353
];
5454
}
5555

56-
/**
57-
* Button size source getter
58-
*
59-
* @return array
60-
*/
61-
public function getSize(): array
62-
{
63-
return [
64-
'responsive' => __('Responsive')
65-
];
66-
}
67-
6856
/**
6957
* Button label source getter
7058
*

app/code/Magento/Paypal/etc/adminhtml/system/express_checkout.xml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -703,16 +703,6 @@
703703
</depends>
704704
<attribute type="shared">1</attribute>
705705
</field>
706-
<field id="checkout_page_button_size" translate="label tooltip" type="select" showInDefault="1" showInWebsite="1" showInStore="1" sortOrder="40">
707-
<label>Size</label>
708-
<config_path>paypal/style/checkout_page_button_size</config_path>
709-
<source_model>Magento\Paypal\Model\System\Config\Source\ButtonStyles::getSize</source_model>
710-
<tooltip>Select Responsive to ensure the PayPal button renders correctly on mobile devices.</tooltip>
711-
<depends>
712-
<field id="checkout_page_button_customize">1</field>
713-
</depends>
714-
<attribute type="shared">1</attribute>
715-
</field>
716706
<field id="checkout_page_button_shape" translate="label" type="select" showInDefault="1" showInWebsite="1" showInStore="1" sortOrder="50">
717707
<label>Shape</label>
718708
<config_path>paypal/style/checkout_page_button_shape</config_path>
@@ -765,12 +755,6 @@
765755
<field id="product_page_button_label" negative="1">credit</field>
766756
</depends>
767757
</field>
768-
<field id="product_page_button_size" extends="payment_all_paypal/express_checkout/settings_ec/settings_ec_advanced/express_checkout_frontend/checkout_page_button/checkout_page_button_size">
769-
<config_path>paypal/style/product_page_button_size</config_path>
770-
<depends>
771-
<field id="product_page_button_customize">1</field>
772-
</depends>
773-
</field>
774758
<field id="product_page_button_shape" extends="payment_all_paypal/express_checkout/settings_ec/settings_ec_advanced/express_checkout_frontend/checkout_page_button/checkout_page_button_shape">
775759
<config_path>paypal/style/product_page_button_shape</config_path>
776760
<depends>
@@ -817,12 +801,6 @@
817801
<field id="cart_page_button_label" negative="1">credit</field>
818802
</depends>
819803
</field>
820-
<field id="cart_page_button_size" extends="payment_all_paypal/express_checkout/settings_ec/settings_ec_advanced/express_checkout_frontend/checkout_page_button/checkout_page_button_size">
821-
<config_path>paypal/style/cart_page_button_size</config_path>
822-
<depends>
823-
<field id="cart_page_button_customize">1</field>
824-
</depends>
825-
</field>
826804
<field id="cart_page_button_shape" extends="payment_all_paypal/express_checkout/settings_ec/settings_ec_advanced/express_checkout_frontend/checkout_page_button/checkout_page_button_shape">
827805
<config_path>paypal/style/cart_page_button_shape</config_path>
828806
<depends>
@@ -869,12 +847,6 @@
869847
<field id="mini_cart_page_button_label" negative="1">credit</field>
870848
</depends>
871849
</field>
872-
<field id="mini_cart_page_button_size" extends="payment_all_paypal/express_checkout/settings_ec/settings_ec_advanced/express_checkout_frontend/checkout_page_button/checkout_page_button_size">
873-
<config_path>paypal/style/mini_cart_page_button_size</config_path>
874-
<depends>
875-
<field id="mini_cart_page_button_customize">1</field>
876-
</depends>
877-
</field>
878850
<field id="mini_cart_page_button_shape" extends="payment_all_paypal/express_checkout/settings_ec/settings_ec_advanced/express_checkout_frontend/checkout_page_button/checkout_page_button_shape">
879851
<config_path>paypal/style/mini_cart_page_button_shape</config_path>
880852
<depends>

0 commit comments

Comments
 (0)