¨4.0.1¨

This commit is contained in:
¨NW¨
2023-12-03 14:07:47 +00:00
parent c08b36d1b6
commit f35052522d
1112 changed files with 43019 additions and 24987 deletions

View File

@@ -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'));