Skip to content

Commit

Permalink
reset items context
Browse files Browse the repository at this point in the history
  • Loading branch information
segy committed Apr 25, 2019
1 parent 5dc8ed9 commit 4afa4ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ public function setContext(array $context)
$this->_context = $context;

if ($this->_items) {
// reset context on items
foreach ($this->_items as $item) {
$item->setCartContext($context);
}

$this->_cartModified();
}
}
Expand Down

0 comments on commit 4afa4ee

Please # to comment.