fixes #467
This commit is contained in:
parent
488583efc8
commit
15891e878c
@ -85,7 +85,7 @@ class Crunchbutton_Order extends Cana_Table {
|
|||||||
$errors['closed'] = 'This restaurant is closed.';
|
$errors['closed'] = 'This restaurant is closed.';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->restaurant()->meetDeliveryMin($this) && $this->delivery_type == 'delivery') {
|
if (!$this->restaurant()->meetDeliveryMin($this) && $this->delivery_type == 'delivery') {
|
||||||
$errors['minimum'] = 'Please meet the delivery minimum of '.$this->restaurant()->delivery_min.'.';
|
$errors['minimum'] = 'Please meet the delivery minimum of '.$this->restaurant()->delivery_min.'.';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -18,7 +18,7 @@ class Crunchbutton_Restaurant extends Cana_Table {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
$price = $this->delivery_min_amt == 'subtotal' ? $order->price : $order->final_price;
|
$price = $this->delivery_min_amt == 'subtotal' ? $order->price : $order->final_price;
|
||||||
return $price < $this->delivery_min ? true : false;
|
return $price < $this->delivery_min ? false : true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function top() {
|
public function top() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user