We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4a7a99 commit d651596Copy full SHA for d651596
src/BuilderAbstract.php
@@ -221,7 +221,7 @@ public function fixTotals($order)
221
$items = array();
222
$amended = false;
223
foreach ($order['cart']['items'] as $item) {
224
- if ('discount' == $item['type']) {
+ if (isset($item['type']) && 'discount' == $item['type']) {
225
$item['total_without_tax'] += $diff_without_tax;
226
$item['total_with_tax'] += $diff_with_tax;
227
$item['name'] .= ('' == $item['name'] ? '' : ' + ') . 'ajuste por redondeos';
@@ -313,4 +313,4 @@ public function items()
313
// TODO: find out were this method was copied from so that we can see when it is updated.
314
315
public abstract function handlingItems();
316
-}
+}
0 commit comments