better management of shipping and basket summary display
This commit is contained in:
@@ -9,6 +9,16 @@ class Deliveries
|
||||
{
|
||||
use Basic;
|
||||
|
||||
public static function getSaleChannelId($deliveryId)
|
||||
{
|
||||
return $deliveryId ? Deliveries::getField($deliveryId, 'sale_channel_id') : SaleChannels::getDefaultID();
|
||||
}
|
||||
|
||||
public static function getDefault()
|
||||
{
|
||||
return Delivery::active()->atHouse()->first();
|
||||
}
|
||||
|
||||
public static function getOptions()
|
||||
{
|
||||
return Delivery::orderBy('name', 'asc')->pluck('name', 'id')->toArray();
|
||||
|
||||
Reference in New Issue
Block a user