Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Not working with vue-storefront v1.10.0 #18

Open
lorenzo-lungo opened this issue Oct 28, 2019 · 5 comments
Open

Not working with vue-storefront v1.10.0 #18

lorenzo-lungo opened this issue Oct 28, 2019 · 5 comments

Comments

@lorenzo-lungo
Copy link

lorenzo-lungo commented Oct 28, 2019

I installed the magento 2 plugin,
On the vue-storefront succespage config i setted /order-success (the path of the externalsuccess page) in the routes.
When I get back to vue-storefront from magento i still have my cart (you can check the full log in the image and the successpage is broken (I can't click on the menu).
Thank you

izV1trg

@Tjitse-E
Copy link
Member

Tjitse-E commented Nov 4, 2019

This issue seems to come from Magento 2 (because of the 'No such entity id' error). Can you confirm that cart syncing actually works by checking the quotes in the DB?

@lorenzo-lungo
Copy link
Author

I have all the quotes in the db, and when I click on procede to checkout I'm correctly redirected to magento with the correct item in the cart. How can I further check if syncing is working?

@paulliep
Copy link

@lorenzo-lungo did you solve your problem? I have the same and have no idea what is wrong. Also I've noticed that checkout success page has no Vue components in the page (Vue DevTools).
Screen Shot 2019-12-26 at 11 07 38 AM

@lorenzo-lungo
Copy link
Author

I had to go through quite some problems to solve this issue but I managed to solve it, the first thing you have for sure to do is to use it as a page and not a component, pointing to the route you find in the route file. If you have further problems as I did feel free to ask

@mikesteeghs
Copy link

I'm running this extension with version 1.11.0 of Vue Storefront. I implemented the changes suggested in: #19. Next to that, I changed line 106 in pages/ExternalSuccess.vue:

From:
rootStore.dispatch('cart/serverCreate', {guestCart: false}, {root: true})

To:
rootStore.dispatch('cart/connect', {guestCart: false}, {root: true})

The serverCreate action doesn't exist anymore and it seems to me (not sure about this) that the connect action replaced this. After this changes it's all working as expected.

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

No branches or pull requests

4 participants