Skip to content

Commit 54463f3

Browse files
MC-41604: Settings migration in System configuration
- change default for paylater experience active and don't migrate settings if display is 0
1 parent 88d7dbc commit 54463f3

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

app/code/Magento/Paypal/Setup/Patch/Data/UpdateBmltoPayLater.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ public function apply()
9797
$setting = $settingParts[1];
9898
$payLaterPath = self::PAYLATERPATH . $page;
9999

100+
if (array_key_exists(self::BMLPATH . $page . '_display', $bmlSettings)
101+
&& $bmlSettings[self::BMLPATH . $page . '_display'] === '0'
102+
) {
103+
continue;
104+
}
105+
100106
foreach ($this->bmlToPayLaterSettings as $bmlToPayLaterSetting) {
101107
if (in_array($page, $bmlToPayLaterSetting['pages'])
102108
&& array_key_exists($setting, $bmlToPayLaterSetting['data'])

app/code/Magento/Paypal/etc/config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
<verify_peer>1</verify_peer>
189189
</hosted_pro>
190190
<paypal_paylater>
191-
<experience_active>1</experience_active>
191+
<experience_active>0</experience_active>
192192
<enabled>0</enabled>
193193
<productpage_display>0</productpage_display>
194194
<productpage_position>header</productpage_position>

0 commit comments

Comments
 (0)