This commit is contained in:
Ludovic CANDELLIER
2022-04-13 23:49:48 +02:00
parent 6e133246cf
commit 9c2b9cf02e
56 changed files with 948 additions and 336 deletions

View File

@@ -19,6 +19,15 @@ class ShopCart
];
}
public static function getSummary()
{
return [
'count' => self::count(),
'quantity' => self::getTotalQuantity(),
'total' => self::getTotal(),
];
}
public static function remove($id)
{
return self::get()->remove($id);