This Magento extension allow You to merge given shopping cart with current's user session. It performs a auto-login if user-token provided.
This module is designed to work with: Vue Storefront External Checkout.
This extension allows the user to start the session within the Vue Storefront shop and finalize the order in Magento1. It's great when You have very extended/customized Magento checkout which will be hard to port to Vue Storefront.
- Copy the module files from the repo to
app/*
- Please install the
vsf-external-checkout
module for Vue Storefront. See the instruction. - Go to: Stores -> Configuration | VueStorefront -> External Checkout and set URL
- if you want to redirect all other Magento Pages to VueStorefront activate Redirect to VSF homepage
- set exclude routes if needed
To test if Your extension works just fine, You can test the following URL:
For example, our test address looks like:
- http://demo-magento2.vuestorefront.io/vue/cart/sync/token/s7nirf24cxro7qx1hb9uujaq4jx97nvp/cart/3648
where
s7nirf24cxro7qx1hb9uujaq4jx97nvp
is a customer token provided byPOST /V1/integration/customer/token
or can be empty!3648
is a quote id; for guest-carts it will be not integer but guid string
Mateusz Bukowski (@gatzzu)