Skip to content

Commit dec3761

Browse files
committed
Clear carts of 'paid' orders
1 parent c586f49 commit dec3761

File tree

1 file changed

+5
-0
lines changed
  • catalog/controller/payment/mollie

1 file changed

+5
-0
lines changed

catalog/controller/payment/mollie/base.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,11 @@ public function callback ()
413413
// If the order status is 'processing' (i.e. 'paid'), redirect to OpenCart's default 'success' page.
414414
if ($order["order_status_id"] == $this->config->get("mollie_ideal_processing_status_id"))
415415
{
416+
if ($this->cart)
417+
{
418+
$this->cart->clear();
419+
}
420+
416421
// Redirect to 'success' page.
417422
$this->redirect($this->url->link("checkout/success", "", "SSL"));
418423
return;

0 commit comments

Comments
 (0)