cart should be pretty much working at this point...now need to test and whatnot
This commit is contained in:
parent
fa52bf1aef
commit
d207994e90
4 changed files with 13 additions and 26 deletions
|
|
@ -67,12 +67,7 @@ sub create {
|
|||
return $class->new($session, $cartId) if (defined $cartId);
|
||||
my $cartId = $session->id->generate;
|
||||
$session->db->write('insert into cart (cartId, sessionId) values (?,?)', [$cartId, $session->getId]);
|
||||
bless my $self, $class;
|
||||
register $self;
|
||||
my $id = id $self;
|
||||
$session{ $id } = $session;
|
||||
$properties{ $id } = {cartId=>$cartId, sessionId=>$session->getId};
|
||||
return $self;
|
||||
return $class->new($session, $cartId);
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue