Skip to content

vaimo/vsf-magento-wishlist

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vue Storefront Magento Wishlist Extension

Magento Wishlist module for vue-storefront. Requires mediamanDE magento-module-wishlist-api

Installation

By hand (preferer):

git clone --single-branch --branch feature/tkg-selver git@github.com:vaimo/vsf-magento-wishlist.git ./vue-storefront/src/modules/

// or add as submodule
$ git submodule add -b feature/tkg-selver git@github.com:vaimo/vsf-magento-wishlist.git src/modules/vsf-magento-wishlist
$ git submodule update --remote

Registration the Magento Wishlist module. Go to ./vue-storefront/src/modules/index.ts

...
import { MagentoWishlistExtend } from './vsf-magento-wishlist';

registerModule(MagentoWishlistExtend)

Add following settings to your config file.

  "magentoWishlist": {
    "endpoint": "/api/ext/magento-wishlist?token={{token}}",
    "add_endpoint": "/api/ext/magento-wishlist/{{sku}}?token={{token}}",
    "remove_endpoint": "/api/ext/magento-wishlist/{{itemId}}?token={{token}}"
  },

Magento Wishlist API extension

Install additional extension for vue-storefront-api:

cp -f ./vue-storefront/src/modules/vsf-magento-wishlist/API/magento-wishlist ./vue-storefront-api/src/api/extensions/

Add it to registeredExtensions in your api config.

  "registeredExtensions": [
    ...
    "magento-wishlist"
  ],

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 97.9%
  • JavaScript 2.1%