change registration or connection in order page, change filter on shelve page, add new api to get article_nature by product_type, css fixes
This commit is contained in:
@@ -11,6 +11,21 @@ class ArticleNatures
|
||||
return ArticleNature::get()->pluck('name', 'id')->toArray();
|
||||
}
|
||||
|
||||
public static function getOptionsByMerchandise()
|
||||
{
|
||||
return self::getOptionsByProductType(2);
|
||||
}
|
||||
|
||||
public static function getOptionsByBotanic()
|
||||
{
|
||||
return self::getOptionsByProductType(1);
|
||||
}
|
||||
|
||||
public static function getOptionsByProductType($type)
|
||||
{
|
||||
return ArticleNature::byProductType($type)->get()->pluck('name', 'id')->toArray();
|
||||
}
|
||||
|
||||
public static function getAll()
|
||||
{
|
||||
return ArticleNature::orderBy('name', 'asc')->get();
|
||||
|
||||
Reference in New Issue
Block a user