File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
app/code/Magento/Weee/Model Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -209,12 +209,17 @@ public function getPriceConfiguration(\Magento\Framework\Event\Observer $observe
209
209
if (is_array ($ priceConfig )) {
210
210
foreach ($ priceConfig as $ keyConfigs => $ configs ) {
211
211
if (is_array ($ configs )) {
212
- foreach ( $ configs as $ keyConfig => $ config ) {
213
- $ priceConfig [$ keyConfigs ][$ keyConfig ][ 'prices ' ]['weeePrice ' ]= [
214
- 'amount ' => $ config ['prices ' ]['finalPrice ' ]['amount ' ],
212
+ if ( array_key_exists ( ' prices ' , $ configs ) ) {
213
+ $ priceConfig [$ keyConfigs ]['prices ' ]['weeePrice ' ] = [
214
+ 'amount ' => $ configs ['prices ' ]['finalPrice ' ]['amount ' ],
215
215
];
216
+ } else {
217
+ foreach ($ configs as $ keyConfig => $ config ) {
218
+ $ priceConfig [$ keyConfigs ][$ keyConfig ]['prices ' ]['weeePrice ' ] = [
219
+ 'amount ' => $ config ['prices ' ]['finalPrice ' ]['amount ' ],
220
+ ];
221
+ }
216
222
}
217
-
218
223
}
219
224
}
220
225
}
You can’t perform that action at this time.
0 commit comments