Minishop2 clear cart after PayPal checkout
I realise that it is not possible to use [[+payment_link]] with PayPal due to the nature of the checkout process, but as an alternative is it possible to instead only clear the cart after PayPal checkout has been completed and the user returns to the site?
Thanks.
Thanks.
Комментарии: 5
Авторизуйтесь или зарегистрируйтесь, чтобы оставлять комментарии.
Cart is cleared right after order is created. Then, all the work is with msOrder object, than keep all properties and ordered products.
I'm sure this is possible, but if you could point in the right direction of how to achieve this.
What I would like to do, is for PayPal orders only (not other payment methods), have the cart not cleared as soon as 'Checkout' is pressed, only have the cart cleared and order created if PayPal checkout is completed (when it returns to Minishop to show the successful order page).
This will stop not completed PayPal orders going to the manager, and also allow customers to complete their PayPal orders by going to back to the cart again if they change their mind.
I believe, that we can realize getProductLink method for PayPal and will try to do it.
Look at this.