Skip to content

Commit

Permalink
Merge pull request #33 from rizdaprasetya/master
Browse files Browse the repository at this point in the history
add: change order status to failure
  • Loading branch information
harrypujianto committed Aug 27, 2015
2 parents 263b747 + d8c4540 commit 41553b2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions controllers/front/back.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ public function initContent()
if (null !==Tools::getValue('order_id') && '' !==Tools::getValue('order_id') ){
$order_id = Tools::getValue('order_id');
}

// set order status in backend to be failure
$history = new OrderHistory();
$history->id_order = $order_id;
$history->changeIdOrderState(Configuration::get('VT_PAYMENT_FAILURE_STATUS_MAP'), $order_id);
$history->add(true);
//

$cart = $this->context->cart;
$status = 'back';

Expand Down

0 comments on commit 41553b2

Please sign in to comment.