Download the PHP package janis-commerce/janis-connector without Composer

On this page you can find all versions of the php package janis-commerce/janis-connector. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package janis-connector

Janis Connector [Version Status]()

The purpose of this module is to create a connection to Janis Commerce API services. By doing this some information will be available in Magento 2 to be used.

Compatibility: [Version Status]() [Version Status]() [Composer Status]()

Features

Installation and Configuration

Installation via Composer

To install this module, just run the following command line:

For more information about JanisConnector via composer installation, follow us:

Enable module

Once JanisConnector was installed, you need to enable the module. To do this, run the following next command lines over a magento project

Parameter configurations

First at all, you have to localize the Backoffice Configurations Panel, then find out the "Stores" -> "Configuration", in left sidebar menu

Magento Backoffice Configuration

Click on "Janis Commerce" -> "Janis Connection"

Janis Connection

In this panel you'll find out the main Janis Connection configurations, to enable this module and allow it to communicate with Janis APIs.

Janis Connection expanded

To use the new Janis API where the slaName attribute is used, the Janis endpoint to receive a split cart field must be like this.

Janis EndPoint

Here you can see 2 main sections:

Janis Connection

All this information must be requested to Janis Commerce and it will be provided depending of the client.

Orders

Features

Order Creation Notification

On one side we have the sending of notifications to janis, when a new order with an invoice has been created.

This is the body format built internally by this module:

When Janis API Service receives the sended resquest, returns a response with the following format:

This means that our request has been added to a waiting queue, to be able to process it.

This feature of the module comes integrated with a configurable Cron Job, which executes a scan of the orders created with an invoice and sends the respective notification to Janis Services. Once Janis returns a satisfactory response, these orders will be excluded from future sweeps.

Splitcart Request

On the other hand, this module has the functionality to request a splitcart payload from Janis API.

Webapi URL

The webapi URL available to target is:

There are two format options to allow Client, to request information:

1) Client Body format to allow the module to use quote items to build request

With this body format, JanisConnector add all items located in the cart, and sent them to get the splitcart payload.

2) Client Body format to force the module to use custom products to build request

Also it is possible to add custom products, including "skus" field as is shown in the next example:

Internally with those types of client requests, JanisConnector will build and send a body payload to a configurable Janis End Point, created with this format:

Splitcart Request Variables

In this section there are some examples of request and responses from Janis Commerce:

According to 3 types of custom shipping methods available by Janis API, this module would create:

1) Shipping type: delivery

Janis body request example:

Janis payload response:

2) Shipping type: storePickup

Janis body request example:

Janis payload response:

3) Shipping type: expressDelivery

Janis body request example:

Janis payload response:

Usage examples

There is a wide variety of uses that could be given to the functionalities provided by JanisConnector, among some we present:

1) Splitcart

A visual representation of the use of the splitcart would be the following:

Once the products have been loaded into the minicart/basket, as normal

Splitcart example image 1

When going to the next step and after having made the internal request to Janis, a cart with its respective subcarts would be shown

Splitcart example image 2

To improve the handling of this feature, you could use a third-party module, such as Attribute Base SplitCart.

For more information, follow their official website:

2) Shipping methods available

With the information obtained from Janis, it is possible for us to put together a shipping method selector according to a product in which the customer is interested in purchasing. Thus we provide more accurate information and also provide greater comfort to said client.

Shipping methods example

3) Availability according to proximity

Using the customer's location as a reference, and the availability of the product they are looking at, it is possible to generate a map of nearby locations where they could purchase said product.

Availability according to proximity example

4) Shipping schedule and costs

Another scenario in which you can take advantage of the benefits of this module is when it could be made available to the customer, with information about the available shipping dates and their costs. In this way, the client can select the one that best suits their budget and urgency of acquiring the product.

Shipping schedule and costs

Not included in this module

The Front End of Magento was not modified at all. This module only include the connection and the storage of the data retrieved from Janis Commerce. i.e.: When the Split Cart information is retrieved, this won't be available in the FrontEnd, Magento must be customized to show the data according to the project.


All versions of janis-connector with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package janis-commerce/janis-connector contains the following files

Loading the files please wait ....