wip 3d
This commit is contained in:
@@ -33,9 +33,10 @@ class Categories
|
||||
return self::getModel()->defaultOrder()->get()->toTree();
|
||||
}
|
||||
|
||||
public static function getCategoryTreeVisibles()
|
||||
public static function getCategoryTreeVisibles($sale_channel_id = false)
|
||||
{
|
||||
return self::getModel()->defaultOrder()->where('visible', 1)->get()->toTree();
|
||||
// return self::getModel()->defaultOrder()->visible()->hasAvailableOffers($sale_channel_id)->get()->toTree();
|
||||
return self::getModel()->defaultOrder()->visible()->get()->toTree();
|
||||
}
|
||||
|
||||
public static function getChildren($data, $withFolder = false)
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -486,5 +486,4 @@ class Articles
|
||||
{
|
||||
return self::update(['homepage' => $homepage], $id);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user