Skip to content
This repository has been archived by the owner on Mar 9, 2019. It is now read-only.

Add the thank you page where the user will be redirected to after placing an Magento order #2

Open
pkarw opened this issue Mar 29, 2018 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@pkarw
Copy link

pkarw commented Mar 29, 2018

It's connected with DivanteLtd/magento2-external-checkout#7

We need to add route and Thank You Page; after this page is displayed, we must clear the shopping cart by dispatching:

  rootStore.dispatch('cart/clear', {}, { root: true })
  rootStore.dispatch('cart/serverCreate', { guestCart: false }, { root: true })
@filrak filrak self-assigned this Apr 1, 2018
@filrak
Copy link
Owner

filrak commented Apr 2, 2018

I'll take care of it. My proposal is that the route for the redirect after placing an order will be specified in config so user have full control over their route addresess. This would look like

externalCheckout: {
  ...
  "routeAfterPlaceOrder" : "thank-you-page" // or homepage if user prefers
}

We need changes in magento module for this. I suggest just redirecting it to /after-external-checkout-order route which will handle the rest

@pkarw
Copy link
Author

pkarw commented Apr 2, 2018

Make sense. Remember to clear the cart before redirecting to thank you page

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants