> For the complete documentation index, see [llms.txt](https://shiply-integration-apis.gitbook.io/shiply-integration-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shiply-integration-apis.gitbook.io/shiply-integration-documentation/integration-plugins-and-apps/woocommerce-plugin.md).

# WooCommerce Plugin

This section provides a detailed overview of the Shiply WooCommerce plugin, designed to seamlessly integrate Shiply’s logistics services into your WooCommerce store.

## Shiply Logistics WooCommerce plugin

### Installation Guide

* Install the plugin using the following file:

{% file src="/files/ZQSnrMDOS0xyHORB2dmT" %}

* Place the folder in the following path in your WooCommerce website:\
  `/wp-content/plugins/shiply-logistics-integration`.
* Configure the API Key:
  * Retrieve your `Shiply_API_KEY` from Shiply team.
  * Open the `wp-config.php` file located in the root directory of your WordPress website.
  * Add the following line of code to the file, replacing `YOUR_SHIPLY_API_KEY` with your actual API key: `define( 'SHIPLY_API_KEY', 'YOUR_SHIPLY_API_KEY' );`&#x20;
* Configure host server:
  * Open the `wp-config.php` file located in the root directory of your WordPress website.
  * Add the following line of code to the file, replacing `HOST_SERVER` with the actual host server:\
    `define( 'URL', 'HOST_SERVER' );`

    For Palestine stores:

    * For real environment: `https://shiplylogistics.com/api/v1/`&#x20;
    * For development environment: `https://stage.shiplylogistics.com/api/v1/`

    For Jordan stores:

    * For real environment: `https://jordan.shiplylogistics.com/api/v1/`&#x20;
    * For development environment: `https://stagejordan.shiplylogistics.com/api/v1/`&#x20;

{% hint style="info" %}

* For websites using **Palestine** as the country, prices will be rounded to remove decimal points to ensure parcels can be successfully created in Shiply.
  {% endhint %}

### Usage Guide

This section introduces the features added to your website through the integration with the Shiply system using this plugin.

#### Order details page

* On the admin order details page, the following fields are added to the Order Details card:

<figure><img src="https://1864944789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEfEm7CR6SXFI7y7k7rKZ%2Fuploads%2F1gC31NfkxhNJuQbqwnqi%2Fimage.png?alt=media&amp;token=287537df-f92d-4946-9d16-7861abaa74f9" alt="" width="335"><figcaption></figcaption></figure>

* These are the main sections in the plugin:

<figure><img src="https://1864944789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEfEm7CR6SXFI7y7k7rKZ%2Fuploads%2FeMwRQ6B03ZxBeNTsRC7J%2F1.png?alt=media&amp;token=4feb0a37-764e-48fd-94ee-b619c178bcf4" alt="" width="386"><figcaption></figcaption></figure>

1. **Info button:** Displays a brief description of the plugin's features, providing an overview of its functionality.

<p align="center"><img src="https://1864944789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEfEm7CR6SXFI7y7k7rKZ%2Fuploads%2FHz2V92utOQTqH4CB2HZD%2Funknown.png?alt=media&amp;token=61aac0ec-e1af-40b3-8c7e-a8242786251b" alt=""></p>

2. **Shiply Shipping Address Section:**
   1. **Selected Shiply Address:** Displays the previously selected shipping address associated with the parcel for the current order.
   2. **Selected Address Shipping Cost:** Shows the shipping cost of the previously selected shipping address.
   3. **Select Shiply Shipping Address:** This section includes two dropdown lists and a cost field:
      1. **Select City:** Allows you to choose the city for the shipping address.
      2. **Select Shipping Address:** Populates with villages in the selected city. If no city is selected, it displays all villages from all cities.
      3. **Shipping Cost:** Displays the shipping cost based on the selected city and village (the currency will be the same as the used website currency, either ILS or JOD).
   4. **Include Shiply shipping cost to the total checkbox:** This checkbox indicates if want to add the calculated Shiply shipping cost from the selected address to the order total when creating or updating the parcel (checked means include).
3. **Shiply Parcel Section:**
   1. **Parcel Code:** Displays the parcel code if a parcel has been created for the order.
   2. **Parcel Description:** Allows you to add or edit a description for the parcel.
   3. **Parcel Actions:** Includes four buttons to manage parcel:
      1. **Create Parcel:** Creates a new parcel for the order.
      2. **Submit & Assign QR:** Submits the parcel and assigns a QR code to it.
      3. **Cancel Parcel:** Cancels the created parcel.
      4. **Update Parcel:** Updates the parcel's details.

* Parcel actions:

1. **Create Parcel**&#x20;
   1. A parcel cannot be created for an order that already has an existing parcel.
   2. A parcel cannot be created if there are missing customer information in the shipping address entered by the customer such as phone number or street.&#x20;
   3. If the user does not provide a description, a default description will be generated and displayed in the description field.
   4. When clicking on the **“Create Parcel”** action:
      * If a Shiply shipping address is not selected, the system attempts to resolve it using the address details entered by the recipient (address resolver).
      * If the address cannot be resolved, the admin must manually map it by selecting the appropriate city and village based on the recipient’s address information.
   5. After Parcel Creation:
      1. The shipping address, shipping cost, and parcel code are automatically set.
      2. Next to the parcel code, the status of the parcel is displayed for quick reference.

<figure><img src="https://1864944789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEfEm7CR6SXFI7y7k7rKZ%2Fuploads%2Fr9SNI10I2Mkgt13numgl%2Fimage.png?alt=media&amp;token=72a756a0-0864-4ae8-b93c-a327e9b0355c" alt="" width="332"><figcaption></figcaption></figure>

2. **Submit & Assign QR**

* Updates the parcel status from "Draft" to "Submitted".
* Assigns a QR code to the parcel.

<figure><img src="https://1864944789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEfEm7CR6SXFI7y7k7rKZ%2Fuploads%2FBsAEpFTXffkZRUndVhKS%2Fimage.png?alt=media&amp;token=e1ca71f5-cb9c-48c0-85e4-c40634458961" alt="" width="328"><figcaption></figcaption></figure>

3. **Cancel Parcel**

* Reverts the parcel status from "Submitted" back to "Draft".

<figure><img src="https://1864944789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEfEm7CR6SXFI7y7k7rKZ%2Fuploads%2FHHIEjRHz6Ejz76NjQ1fL%2Fimage.png?alt=media&amp;token=7c8ebb68-24ad-40ec-ae1b-22a6596bbccf" alt="" width="330"><figcaption></figcaption></figure>

4. **Update Parcel**

* Allows updating either the shipping address or the description of the parcel.

<figure><img src="https://1864944789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEfEm7CR6SXFI7y7k7rKZ%2Fuploads%2FXzWaP3CmnKt5t2Wpg6xA%2Fimage.png?alt=media&amp;token=95ce4f97-7a07-4536-ba05-06e047010d6d" alt="" width="330"><figcaption></figcaption></figure>

5. **Change Order Price**

* When the order price is updated and a parcel has already been created for the order, the parcel's price is automatically updated to reflect the new order price.

#### Orders listing page

In the orders listing page:

<figure><img src="https://1864944789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEfEm7CR6SXFI7y7k7rKZ%2Fuploads%2FV5hClbJ18052dUMVNlgQ%2FScreenshot%202026-05-05%20114228.png?alt=media&amp;token=57e97c2f-a7b9-410c-8604-e2bc27b8071f" alt=""><figcaption></figcaption></figure>

There are 2 sections added to this page which are:

1. **Shiply Status:** A column that shows the Shiply parcel status for each order
2. Bulk actions:
   1. **Shiply - Create Parcel:** To create parcels for orders in bulk.
      1. After selecting the order(s), choosing this action, and clicking "Apply", the following will appear:<br>

         <figure><img src="https://1864944789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEfEm7CR6SXFI7y7k7rKZ%2Fuploads%2FtugsrsEqhghnXwOBME6o%2Fimage.png?alt=media&amp;token=d40f4e82-dddf-4ba0-aacd-9c0ebc05390e" alt=""><figcaption></figcaption></figure>

      2. It displays a summary of the shipping address and cost for the selected orders.

         For some orders, the Shiply shipping address can be resolved automatically by the system, while for others where the address cannot be resolved, the shipping address must be selected manually. Additionally, the user must specify whether the calculated shipping cost should be included in the order’s total price when creating the parcel.

      3. When clicking “Continue Bulk Create”, the system will create parcels for the eligible selected orders and, once completed, present a summary of the performed actions.<br>

         <figure><img src="https://1864944789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEfEm7CR6SXFI7y7k7rKZ%2Fuploads%2F7FqTMXvaqiLZjyHCF0qg%2FScreenshot%202026-05-05%20122317.png?alt=media&amp;token=0b525c84-a043-4118-a36b-d4ffdc6ef8c7" alt=""><figcaption></figcaption></figure>

   2. **Shiply - Submit & Assign QR:** To bulk submit "Draft" parcels associated with orders.
      1. After selecting the order(s), choosing this action, and clicking "Apply", the following will appear:\
         &#x20;

         <figure><img src="https://1864944789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEfEm7CR6SXFI7y7k7rKZ%2Fuploads%2FRk24ibIc4m6as0qDhfDr%2Fimage.png?alt=media&amp;token=cfc8b3d3-d91b-452b-855c-ed8d4503195f" alt=""><figcaption></figcaption></figure>

      2. It will display a summary of the parcels from the selected orders that are eligible for submission.

      3. When clicking "Continue Submission", the system will submit the selected parcels and, upon completion, display a summary of the performed action: <br>

         <figure><img src="https://1864944789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEfEm7CR6SXFI7y7k7rKZ%2Fuploads%2Fl99slgXF2e2lso95f0vG%2FScreenshot%202026-05-05%20120130.png?alt=media&amp;token=1a58e5a4-2e3e-4c84-a790-bd9de6d15e4d" alt=""><figcaption></figcaption></figure>

#### Settings page

In the "WooCommerce" tab, a section labeled “Shiply Logistics” can be found at the end of the list:

<figure><img src="https://1864944789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEfEm7CR6SXFI7y7k7rKZ%2Fuploads%2FPzvn5VtupTeEfuCbJGME%2Fimage.png?alt=media&amp;token=10bb72f5-2442-48bb-bd0c-24cde8bd5457" alt=""><figcaption></figcaption></figure>

There is a “Clear cache” button used to refresh cached Shiply data by clearing the existing cache and reloading it directly from Shiply.
