if the the command below was moved to the checkout success page would that be better ? would the cart empty at the end on the payment instead???
in 2.2.
The cart reset happens in after_process() in includes/modules/payment/paypay_hss.php line 360:
$cart->reset(true);
Remove this and the cart will never empty. So not recommended at the moment :)
Stock is updated in before_process() so the qty field will be adjusted if they pay or not.
This to me seems all wrong. Wouldn't it be better to update stock and empty the customers basket when the IPN comes back from paypal?