Skip to content

Commit

Permalink
Merge pull request bagisto#10385 from phyothiha/issues#10380
Browse files Browse the repository at this point in the history
fix: add additional column while updating cart items
  • Loading branch information
devansh-webkul authored Dec 17, 2024
2 parents 2eee3b6 + 6648422 commit 9cb7e41
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/Webkul/Checkout/src/Cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,10 @@ public function updateItems(array $data): bool|\Exception
'base_total_incl_tax' => $item->base_price_incl_tax * $quantity,
'total_weight' => $item->weight * $quantity,
'base_total_weight' => $item->weight * $quantity,
'additional' => [
...$item->additional,
'quantity' => $quantity,
],
], $itemId);

Event::dispatch('checkout.cart.update.after', $item);
Expand Down

0 comments on commit 9cb7e41

Please sign in to comment.