npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vsf-external-checkout-module

v2.0.0

Published

External checkout module for Vue Storefront

Downloads

6

Readme

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

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/index.ts file
import { ExternalCheckout } from './external-checkout'

export const registerModules: VueStorefrontModule[] = [
   // other extensions
  ExternalCheckout
]
  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