@@ -82,16 +82,6 @@ public function apply()
82
82
{
83
83
$ this ->moduleDataSetup ->getConnection ()->startSetup ();
84
84
85
- $ this ->moduleDataSetup ->getConnection ()->insertOnDuplicate (
86
- $ this ->moduleDataSetup ->getTable ('core_config_data ' ),
87
- [
88
- 'scope ' => 'default ' ,
89
- 'scope_id ' => 0 ,
90
- 'path ' => 'payment/paypal_paylater/experience_active ' ,
91
- 'value ' => '1 '
92
- ]
93
- );
94
-
95
85
$ select = $ this ->moduleDataSetup ->getConnection ()->select ()
96
86
->from (
97
87
$ this ->moduleDataSetup ->getTable ('core_config_data ' ),
@@ -100,18 +90,13 @@ public function apply()
100
90
->where ('path LIKE ? ' , self ::BMLPATH . '% ' );
101
91
$ bmlSettings = $ this ->moduleDataSetup ->getConnection ()->fetchPairs ($ select );
102
92
103
- $ enabled = false ;
104
93
foreach ($ bmlSettings as $ bmlPath => $ bmlValue ) {
105
94
$ setting = str_replace (self ::BMLPATH , '' , $ bmlPath );
106
95
$ settingParts = explode ('_ ' , $ setting );
107
96
$ page = $ settingParts [0 ];
108
97
$ setting = $ settingParts [1 ];
109
98
$ payLaterPath = self ::PAYLATERPATH . $ page ;
110
99
111
- if ($ setting === 'display ' && $ bmlValue === '1 ' ) {
112
- $ enabled = true ;
113
- }
114
-
115
100
foreach ($ this ->bmlToPayLaterSettings as $ bmlToPayLaterSetting ) {
116
101
if (in_array ($ page , $ bmlToPayLaterSetting ['pages ' ])
117
102
&& array_key_exists ($ setting , $ bmlToPayLaterSetting ['data ' ])
@@ -155,17 +140,6 @@ public function apply()
155
140
}
156
141
}
157
142
}
158
- if ($ enabled ) {
159
- $ this ->moduleDataSetup ->getConnection ()->insertOnDuplicate (
160
- $ this ->moduleDataSetup ->getTable ('core_config_data ' ),
161
- [
162
- 'scope ' => 'default ' ,
163
- 'scope_id ' => 0 ,
164
- 'path ' => 'payment/paypal_paylater/enabled ' ,
165
- 'value ' => '1 '
166
- ]
167
- );
168
- }
169
143
return $ this ->moduleDataSetup ->getConnection ()->endSetup ();
170
144
}
171
145
0 commit comments