/medusa-fulfillment-econt

Medusa Fulfillment plugin for econt.bg

Primary LanguageTypeScript

Medusa logo

Medusa Fulfillment Econt

Fulfillment plugin for econt.bg

PRs welcome! Discord Chat Follow @tsnnik

Compatibility

This plugin should be compatible with versions >= 1.8.0 of @medusajs/medusa.

Features

  • Query information about cities and offices covered by Econt. Create shipping labels

How to Install

1. Run the following command in the directory of the Medusa backend:

npm install medusa-fulfillment-econt

or

yarn add medusa-fulfillment-econt

2. Set the following environment variables in .env:

ECONT_USERNAME=<YOUR_ECONT_USERNAME>
ECONT_PASSWORD=<ECONT_PASSWORD>
ECONT_SERVICE_URL=<ECONT_SERVICE_URL>

3. In medusa-config.js add the following at the end of the plugins array:

const plugins = [
  // ...
  {
    resolve: "medusa-fulfillment-econt",
    options: {
      username: process.env.ECONT_USERNAME,
      password: process.env.ECONT_PASSWORD,
      service_url: process.env.ECONT_SERVICE_URL || "https://demo.econt.com/ee/services",
    }
  },
]

4. Routes

BACKEND_URL/store/econt/offices/cityname/:name - search all offices for a city with :name BACKEND_URL/store/econt/offices/name/:name - search all offices for an office with :name BACKEND_URL/store/econt/cities/postcode/:postcode - search all cities with a postcode (or partial postcode) :postcode

Check out all available Medusa plugins.

Join our Discord server to meet other community members.

Other channels