Author Topic: $cart->emptyCart() is not working properly?  (Read 584 times)


  • Jr. Member
  • **
  • Posts: 133
$cart->emptyCart() is not working properly?
« on: March 02, 2018, 14:53:57 pm »

I am using a payment plugin which works great only if I refresh the "Thank you for your order" page the email confirmations gets sent again and the order gets back to the C one (Confirmed)

Now the reason it does this is because at the end of the pluginResponseHTMLRecevied, there is a line of code:


This makes the cart empty but does not disable the refresh page to change the order status again. Does osmeone know how to fix this?


  • Beginner
  • *
  • Posts: 3
  • Third party VirtueMart developer
    • Laeks OÜ
Re: $cart->emptyCart() is not working properly?
« Reply #1 on: March 02, 2018, 15:52:56 pm »
I have usually used method function plgVmConfirmedOrder($cart, $order) to empty cart with $cart->emptyCart(); and have not got any issues like this so far.
Ofcourse it would be easier to say anything for sure if would knoe more about what plugin you use and see how its set up.