Skip to content

Commit

Permalink
session replace quote when inactivatequote runs
Browse files Browse the repository at this point in the history
  • Loading branch information
iesus committed Jun 28, 2018
1 parent 82644f3 commit 0458f27
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/code/community/Svea/Checkout/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ public function replaceQuote()
->collectTotals()
->save();
$oldQuote->setIsActive(0);
$session->setQuoteId($newQuote->getId());

return $newQuote;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,11 @@ protected function _getSveaResponse($sveaOrder)
$response = $this->_invalidateQuote($sveaOrder, $quote);
}

if ($response['Status'] == 'Cancelled') {

$response = $this->_invalidateQuote($sveaOrder, $quote);
}

if ($svea->sveaOrderHasErrors($sveaOrder, $quote, $response)) {
$message = sprintf(
$this->__('Error code 205-q%d - Could not load Svea Ekonomi checkout%s'),
Expand Down

0 comments on commit 0458f27

Please sign in to comment.