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

Commit

Permalink
Merge pull request #8 from Vendic/feature/vs-1.9-compatibility
Browse files Browse the repository at this point in the history
VueStorefront 1.9 compatibility
  • Loading branch information
Tjitse-E authored Mar 26, 2019
2 parents e8b5792 + 4f76c87 commit 6992eb0
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*~
*~
.idea
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,31 @@
With this extension you can use your CMS checkout (e.g. Magento) instead of default [Vue Storefront](https://github.com/DivanteLtd/vue-storefront) checkout.
This plugin requires cart and user sync on your backend (see [integrations](https://github.com/filrak/vsf-external-checkout#current-cms-integrations-for-this-extension) )

<center>
<img src="./media/diagram.png">
</center>
![VueStorefront demo with external checkout](https://images.ctfassets.net/ob7fjdpx9cry/FPmgKirYGq6g2Ac408ekk/0131b55a0ddf148d85794a6a35f8af3e/ezgif.com-gif-maker-1.gif)

## Current CMS integrations for this extension

* [Magento 2](https://github.com/DivanteLtd/magento2-external-checkout)
* [Magento 2](https://github.com/Vendic/magento2-external-checkout)

## How it works?

<center>
<img src="./media/diagram.png">
</center>

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](https://github.com/Vendic/vsf-external-checkout/releases) and extract it in `src/modules/external-checkout`
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vsf-external-checkout-module",
"version": "1.1.1",
"version": "2.0.0",
"description": "External checkout module for Vue Storefront",
"main": "index.ts",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion pages/ExternalSuccess.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ import BaseTextarea from 'theme/components/core/blocks/Form/BaseTextarea'
import ButtonOutline from 'theme/components/theme/ButtonOutline'
import VueOfflineMixin from 'vue-offline/mixin'
import { EmailForm } from '@vue-storefront/core/modules/mailer/components/EmailForm'
import rootStore from '@vue-storefront/store'
import rootStore from '@vue-storefront/core/store'
export default {
name: 'ExternalThankYouPage',
mixins: [Composite, VueOfflineMixin, EmailForm],
Expand Down
2 changes: 1 addition & 1 deletion router/beforeEach.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Route} from 'vue-router'
import rootStore from '@vue-storefront/store'
import rootStore from '@vue-storefront/core/store'
import config from 'config'
import {storeCodeFromRoute} from '@vue-storefront/core/lib/multistore'

Expand Down

0 comments on commit 6992eb0

Please sign in to comment.