Download the PHP package solution25/partial-delivery without Composer

On this page you can find all versions of the php package solution25/partial-delivery. 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 partial-delivery

Packagist Version Packagist Downloads License: MIT

Partial Delivery Plugin

Introduction

The Partial Delivery plugin for Shopware 6 enables merchants to manage and track partial shipments for individual order items. This is especially useful in scenarios where an order cannot be fulfilled all at once and must be shipped in multiple packages.It ensures that customers receive available items as soon as possible without having to wait for the entire order to be ready. This improves customer satisfaction and keeps logistics transparent and organized.

Key Features

  1. Track Partial Shipments

    • Enables tracking of multiple packages per order item.
    • Each package has its own quantity and tracking number.
  2. Custom Admin Tab for Shipments

    • Adds a new “Shipment” tab in the Order Detail view.
    • View and manage all partial deliveries directly in the admin panel.
  3. Multiple Entries per Line Item
    • Supports recording several shipments for the same item.
    • Useful for cases like backorders or separate warehouse fulfillment.

Compatibility

Get Started

Prerequisites

Important Requirement
The Partial Delivery plugin requires the Shopware Commercial edition to function properly.
Make sure Shopware Commercial is installed and active before proceeding.


Installation & Activation

  1. Download

    Git

    • Clone the Plugin Repository:
    • Open your terminal and run the following command in your Shopware 6 custom plugins directory (usually located at custom/plugins/):

Packagist

  1. Install the Plugin in Shopware 6
    • Log in to your Shopware 6 Administration panel.
    • Navigate to Extensions > My Extensions.
    • Locate the newly cloned plugin and click Install.
  2. Activate the Plugin
    • After installation, click Activate to enable the plugin.
    • In your Shopware Admin, go to Settings > System > Plugins.
    • Upload or install the “PartialDelivery” plugin.
    • Once installed, toggle the plugin to activate it.
  3. Verify Installation

    • After activation, you will see PartialDelivery in the list of installed plugins.
    • The plugin name, version, and installation date should appear as shown in the screenshot below.

    image1


Plugin Configuration

The Partial Delivery plugin does not require any specific configuration after installation. Once activated, it automatically adds a "Shipment" tab in the Order Detail view in the Shopware Admin panel.

image2

If the tab does not appear immediately after installation, run the following commands in your Shopware terminal:

These commands will rebuild the admin interface to ensure the shipment tab is visible.


How It Works

1. Customer Places an Order
When a customer places an order, the full quantity of each product is recorded in the order under the Quantity column.

2. Admin Creates a Shipment
From the order’s Shipments tab, the admin can manually create a shipment by clicking the Create Shipment button.

3. Partial Shipment Entry
Instead of shipping the full quantity, the admin can enter a partial quantity to ship (e.g., only 5 out of 20 units).

Each partial shipment can include:

4. Shipment Details Are Tracked Each shipment is tracked under Shipment Details, showing:

This allows multiple packages to be associated with a single order.

5. Order Status and Fulfillment Management

image4


Best Practices

This document describes the custom Admin API endpoints provided by the Partial Delivery Plugin for Shopware 6. These endpoints allow authorized users to create and retrieve partial shipment data associated with order line items.

🔧 Create Partial Deliveries

Endpoint

POST /api/_action/partial-shipment-delivery

Description

Creates one or more partial delivery entries for specific orderLineItemIds. Each entry must include:

The system validates:

Request Headers

Authorization: Bearer Content-Type: application/json

Example Request Body

{
  "partialDeliveries": [
    {
      "orderLineItemId": "0195a178f96b7345ad27051c34609e52",
      "quantity": 4,
      "package": "Package 6",
      "trackingCode": "DHL12sad31e279"
    },
    {
      "orderLineItemId": "0195a3aea0447296bc5377d49ab95c1e",
      "quantity": 1,
      "package": "Package 2",
      "trackingCode": "1234ABCD789"
    }
  ]
} 

Successful Response

{
  "insertedIds": [
    "0195a178f96b7345ad27051c34609e52",
    "0195a3aea0447296bc5377d49ab95c1e"
  ],
  "skippedItems": []
}

Example Error Response (Skipped Items)

{
  "insertedIds": [],
  "skippedItems": [
    {
      "index": 0,
      "orderLineItemId": "{{invalid-id}}",
      "reason": "Invalid or missing orderLineItemId or the quantity exceeded"
    }
  ]
}

📦 Get Shipments by Order ID

GET /api/_action/shipment/{orderId}

Description Fetches all partial deliveries grouped by line item for a given order. Each result shows:

Example Request

GET /api/_action/shipment/5b6a139e54e54ed7b7997c71f6f56f9e

Example Response

[
  {
    "lineItemId": "0195a3aea0447296bc5377d49ab95c1e",
    "quantityOrdered": 3,
    "shipments": [
      {
        "quantity": 1,
        "package": "Package 2",
        "trackingCode": "12334ASDAD9",
        "createdAt": "2025-05-22T14:36:12+00:00"
      }
    ]
  },
  {
    "lineItemId": "0195a178f96b7345ad27051c34609e52",
    "quantityOrdered": 4,
    "shipments": [
      {
        "quantity": 4,
        "package": "Package 6",
        "trackingCode": "DHL12sad31e279",
        "createdAt": "2025-05-22T14:36:12+00:00"
      }
    ]
  }
]

🔐 Authentication All endpoints require a valid Admin API Bearer token. You can obtain this token using the standard Shopware Admin API authentication process.


Troubleshooting

FAQ


Link to : Wiki


All versions of partial-delivery with dependencies

PHP Build Version
Package Version
Requires shopware/core Version ^6.6 || ^6.7
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 solution25/partial-delivery contains the following files

Loading the files please wait ...