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
I do not understand what do you ask.
Cart is cleared right after order is created. Then, all the work is with msOrder object, than keep all properties and ordered products.
Cart is cleared right after order is created. Then, all the work is with msOrder object, than keep all properties and ordered products.
Sorry, I will try to explain myself better.
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'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.
Leaving the cart will not solve the issue, because when user goes to cart — he will make a new order, instead of continuing exists.
I believe, that we can realize getProductLink method for PayPal and will try to do it.
I believe, that we can realize getProductLink method for PayPal and will try to do it.
Excellent, thanks for this. I will give it as test as soon as I get a chance.
Авторизуйтесь или зарегистрируйтесь, чтобы оставлять комментарии.