vsf-external-checkout icon indicating copy to clipboard operation
vsf-external-checkout copied to clipboard

Not working with vue-storefront v1.10.0

Open lorenzo-lungo opened this issue 5 years ago • 5 comments

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

lorenzo-lungo avatar Oct 28 '19 16:10 lorenzo-lungo

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?

Tjitse-E avatar Nov 04 '19 10:11 Tjitse-E

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?

lorenzo-lungo avatar Nov 04 '19 10:11 lorenzo-lungo

@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

paulliep avatar Dec 26 '19 09:12 paulliep

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

lorenzo-lungo avatar Jan 02 '20 16:01 lorenzo-lungo

I'm running this extension with version 1.11.0 of Vue Storefront. I implemented the changes suggested in: https://github.com/Vendic/vsf-external-checkout/issues/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.

mikesteeghs avatar Feb 12 '20 07:02 mikesteeghs