codingdaniel/magento2-order-tracking-notification

Notifies customers when tracking information is added to their orders

0.0.1 2022-08-24 21:47 UTC

This package is auto-updated.

Last update: 2024-04-07 18:06:16 UTC


README

Simple Magento 2 module that triggers an order shipment notification to the customer when tracking information is added via the REST API.

A new boolean field notify is added in the extension_attributes parameter of the payload for the shipment/track endpoint.

Example:

{
  "entity": {
    "order_id": 1,
    "parent_id": 1,
    "weight": 0,
    "qty": 0,
    "description": "string",
    "extension_attributes": {
        "notify": true
    },
    "track_number": "string",
    "title": "string",
    "carrier_code": "string"
  }
}

Requirements

  • PHP 7.4
  • Magento 2.4.2 or Magento 2.4.4

Installation

Installation can be done via composer by running composer require codingdaniel/magento2-order-tracking-notification