# Supplier Mangement Add-on

#### About Add-on

The **SpurtCommerce Supplier Management Plugin** streamlines the process of managing suppliers and their products within the eCommerce platform. This plugin allows store administrators to efficiently oversee supplier relationships, track inventory, and ensure timely procurement, enhancing overall operational efficiency.

**Features:**

* **Supplier Onboarding**: Easily add and manage new suppliers, capturing essential details such as contact information, payment terms, and product offerings.
* **Product Association**: Assign products to specific suppliers, allowing for clear visibility of inventory sources and simplifying order fulfillment.
* **Inventory Tracking**: Monitor stock levels from each supplier, helping to manage reordering and avoid stockouts.
* **Performance Analytics**: Analyze supplier performance with metrics on delivery times, product quality, and order accuracy to make informed decisions.
* **Communication Tools**: Facilitate direct communication with suppliers through the platform, ensuring smooth coordination on orders and inventory needs.

### <mark style="color:blue;">Frontend Setup - Seller Panel:</mark>

Follow these steps to set up the front end for the Supplier Management addon in Spurtcommerce Seller Panel.

#### Step 1: Install the Addon:

Locate the Spurtcommerce addon package, typically named seller.addOns.zip.

Extract the zip file and copy the SupplierManagement folder into the addOns folder in your project.

projectFolder -> addOns

After this step, the structure should look like:

projectFolder -> addOns -> SupplierManagement

Once completed, proceed to update the configuration.&#x20;

#### Step 2: Update the Configuration

After installing the addon, update the add-ons.constant.ts file to include the necessary plugins:

```
// ----------------------Supplier Manager--------------------------
import * as SupplierManager from './SupplierManagement/SupplierMangement.contant'
// components paths
export const SupplierManagerComponents = SupplierManager.componentLists;
// route paths
export const SupplierManagerRoutes = SupplierManager.routePath;


```

If you wish to uninstall or remove the SupplierManagement addon, replace the component paths and route paths with an empty array.

```
// ----------------------Supplier Manager--------------------------
import * as SupplierManager from './SupplierManagement/SupplierMangement.contant'
// components paths
export const SupplierManagerComponents =[];
// route paths
export const SupplierManagerRoutes = [];


```

#### Step 3: Run the Application:

To run the application with the integrated Supplier Management addon, use the following command:

```
$ npm run large-serve
```

After executing this command, the addon will be available on Spurtcommerce on the designated page.

#### Step 4: Build the Application

Finally, to prepare the application for deployment, run the build command:

```
$ npm run large-build
```

The latest build files will then be ready to deploy to the server.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.spurtcommerce.com/addons/b2b-related-addons/supplier-mangement-add-on.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
