On the page order success page "catalog/controller/checkout/success.php", there is a check to get the order_id:
Code: Select all
if (isset($this->session->data['order_id'])) {
However when the customer pays with Paypal standard, the order_id is not set, so I can not get other information like "$this->model_account_order->getOrderProducts($order_id)". The other payment methods work fine and the order_id is set.
In my understanding, the Paypal method unsets and clears the order before the success page. Anyone faced a similar problem? Can I keep the "data['order_id']" until success page and clear everything afterwards?