update
This commit is contained in:
@@ -790,8 +790,8 @@ class OrderRepository
|
||||
}
|
||||
}
|
||||
|
||||
if ($coupon && $coupon->is_one_time()) {
|
||||
$coupon->set_as_used();
|
||||
if ($coupon && (int)$coupon->one_time === 1) {
|
||||
(new \Domain\Coupon\CouponRepository($this->db))->markAsUsed((int)$coupon->id);
|
||||
}
|
||||
|
||||
$order = $this->orderDetailsFrontend($order_id);
|
||||
@@ -814,7 +814,7 @@ class OrderRepository
|
||||
\Shared\Helpers\Helpers::send_email($settings['contact_email'], 'Nowe zamówienie / ' . $settings['firm_name'] . ' / ' . $order['number'] . ' - ' . $order['client_surname'] . ' ' . $order['client_name'], $mail_order);
|
||||
|
||||
// zmiana statusu w realizacji jeżeli płatność przy odbiorze
|
||||
if ($payment_id == 3) {
|
||||
if (!empty($payment_method['is_cod'])) {
|
||||
$this->updateOrderStatus($order_id, 4);
|
||||
$this->insertStatusHistory($order_id, 4, 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user