¨4.0.1¨
This commit is contained in:
@@ -11,6 +11,7 @@ class Method
|
||||
public $label;
|
||||
public $cost;
|
||||
|
||||
|
||||
public function __construct($name, $label, $cost)
|
||||
{
|
||||
$this->name = $name;
|
||||
@@ -18,6 +19,7 @@ class Method
|
||||
$this->cost = Money::inDefaultCurrency($cost);
|
||||
}
|
||||
|
||||
|
||||
public function available()
|
||||
{
|
||||
if ($this->name !== 'free_shipping') {
|
||||
@@ -27,6 +29,7 @@ class Method
|
||||
return $this->freeShippingMethodIsAvailable();
|
||||
}
|
||||
|
||||
|
||||
private function freeShippingMethodIsAvailable()
|
||||
{
|
||||
$minimumAmount = Money::inDefaultCurrency(setting('free_shipping_min_amount'));
|
||||
|
||||
Reference in New Issue
Block a user