Skip to content

Commit

Permalink
Merge pull request #4 from hit-pay/Order-Email-Not-Sending-Fix
Browse files Browse the repository at this point in the history
Order Email Not Sending Fix
  • Loading branch information
Nitin Muthyala authored Jan 26, 2022
2 parents 3451695 + 239651d commit 5ce8f7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion upload/catalog/controller/extension/payment/hitpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ public function callback() {

if ($this->request->get['status'] == 'completed') {
$order_id = (int)($this->session->data['order_id']);
$this->db->query("UPDATE `" . DB_PREFIX . "order` SET order_status_id = '" . (int)$this->config->get('payment_hitpay_order_status_id') . "' WHERE order_id = '" . (int)$order_id . "'");
$this->model_checkout_order->addOrderHistory((int)$order_id, $this->config->get('payment_hitpay_order_status_id'));
/*$this->db->query("UPDATE `" . DB_PREFIX . "order` SET order_status_id = '" . (int)$this->config->get('payment_hitpay_order_status_id') . "' WHERE order_id = '" . (int)$order_id . "'");*/
$this->response->redirect($this->url->link('checkout/success', '', true));
} else {
$this->response->redirect($this->url->link('checkout/failure', '', true));
Expand Down

0 comments on commit 5ce8f7d

Please sign in to comment.