Giter Site home page Giter Site logo

magento1-vsbridge-client's Introduction

Magento1 js client for VsBridge

This Node.js library enables JavaScript applications to communicate with Magento1 sites using their VsBridge module This module based on the magento2-rest-client module created by Marko Novak (2016).

This module is used by the Vue Storefront - first Progressive Web App for eCommerce.

Installation

The library can be installed using the Npm package manager:

$ npm install --save github:DivanteLtd/magento1-vsbridge-client

Requirements

This module is compatible with magento1-vsbridge

magento1-vsbridge-client's People

Contributors

mtarld avatar pkarw avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

magento1-vsbridge-client's Issues

Some numeric values don't match with VSF API json schema

In Magento1 vsBridge, json response is created using json_encode with JSON_NUMERIC_CHECK flag.
I guess it's to have all ids in an integer format.

But, it creates some unexpected behaviors:

  • cartId: Magento1 (contrary to Magento2), has integer values for cartId. but src/models/order.schema.json from vuestorefront-api defines it as string. Therefore, the schema cannot be validated
  • Shipping addresses: postcode and telephone are converted to integer but again, the schema requires them as strings

It's possible to have same bugs elsewhere in magento1 vsBridge (i didn't tested everything)

oauth token in the request destory the request

Hi there,

we have a very mean frontend setup.
So now the bridge is sending an oauth with every request if there is no request token.

So with empty consumerKey and empty consumerSecret it also create an oauth object and use it wihtin the request.

Our Frontend Server does not allow this couse we don't have oauth ;)
It's a firewall settings that we can't change.

So if there is a request with e.g. BasicAuth or Plain Auth there should be no oauth sending with it.

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.