Git Product home page Git Product logo

vsf-external-checkout's Introduction

Vue Storefront External Checkout

With this extension you can use your CMS checkout (e.g. Magento) instead of default Vue Storefront checkout. This plugin requires cart and user sync on your backend (see integrations )

VueStorefront demo with external checkout

Current CMS integrations for this extension

How it works?

When user tries to enter your Vue Storefront checkout:

  1. The extension synchronizes cart and user data with your backend CMS
  2. User is redirected to your CMS checkout (extension overrides /checkout route).

Installation

Which version should I use ?

Magento Version External Checkout Latest Version
VueStorefront 1.8 vsf-external-checkout 1.x
VueStorefront 1.9 vsf-external-checkout 2.x
VueStorefront 1.11+ vsf-external-checkout 3.x

Manual installation

  1. Download the latest release and extract it in src/modules/external-checkout

  2. Add CMS address to your config/local.json file.

"externalCheckout": {
  "cmsUrl" : "https://yourcmsaddress.com"
}
  1. Enable cart synchronization for your Vue Storefront instance in config/local.json
cart": {
  "synchronize": true,
  ...
}
  1. Register the extension in src/modules/client.ts file and disable the 'Instant checkout' module
import { ExternalCheckout } from './external-checkout'
// import { InstantCheckout } from './instant-checkout'

export const registerModules: VueStorefrontModule[] = [
   // other extensions
  ExternalCheckout,
  // InstantCheckout,
]
  1. Install the appropriate module for your CMS. Currently only Magento 2 is supported.

Installation with Yarn

This feature is not yet support

How to use for a specific stores in a multistore setup

You can specify which storeviews should use the external checkout by adding each store code to your config/local.json file.

"externalCheckout": {
  "cmsUrl" : "https://yourcmsaddress.com",
  "stores": {
    "se": {
      "cmsUrl": "https://yourcmsaddress.com"
    },
    "dk": {
      "cmsUrl": "https://yourcmsaddress.com"
    }
  }
}

How to integrate with other CMS

If you want to integrate this extension with your backend CMS make sure that entering {your_CMS_url}/vue/cart/sync/token/{user-token}/cart/{cart_token} will do the following:

  1. Synchronize cart and user data between Vue Storefront and your CMS
  2. Redirect user to external checkout

Suggestions

For integrations with Magento 2, also have a look at this module that allows you to run Magento 2 in checkout only mode

About Vendic

Vendic develops technically challenging e-commerce websites using Magento 2, as well as innovative headless PWA shops. Feel free to check out our projects on our website.

vsf-external-checkout's People

Contributors

cewald avatar jpetar avatar rakowskiprzemyslaw avatar rgijsberts avatar thermscissorpunch avatar tjitse-e avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.