Skip to content

Commit

Permalink
Manage list of serialized baskets in session
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Jul 4, 2019
1 parent 62c3715 commit 5e34c1b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/mshoplib/src/MShop/Order/Manager/Base/Base.php
Expand Up @@ -116,6 +116,10 @@ public function setSession( \Aimeos\MShop\Order\Item\Base\Iface $order, $type =
$sitecode = $locale->getSite()->getCode();
$key = 'aimeos/basket/content-' . $sitecode . '-' . $language . '-' . $currency . '-' . strval( $type );

$list = $session->get( 'aimeos/basket/list', [] );
$list[$key] = $key;

$session->set( 'aimeos/basket/list', $list );
$session->set( $key, serialize( clone $order ) );
}

Expand Down

0 comments on commit 5e34c1b

Please sign in to comment.