ppm_fulfillment / magento-fulfillment
Magento 2 plugin to interface with PPM Fulfillment
Installs: 20
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Type:magento2-module
This package is auto-updated.
Last update: 2024-12-29 05:57:15 UTC
README
This plugin lets merchants with Magento online stores have orders automatically be sent over to PPM Fulfillment.
It is only for Magento users who also have accounts with PPM.
Here is how it works:
- A customer places an order with one or more items.
- At the time the order is placed, we see if any of those items are fulfilled by PPM
- The items in that order fulfilled by PPM are added to a shipment (collection of packages) and sent to PPM
- PPM posts back order updates (in the form of tracking numbers) as they come in
Installation
The best way to install this plugin is through the Magento marketplace (PENDING)
You can install using composer as well:
$ composer require ppm_fulfillment/magento-fulfillment
Do this from the application root in your server shell. The continue by following the directions in this article
Finally, you can install with a manual file upload:
- Download the extension from GitHub
- Create a directory (in your Magento installation) of
app/code/Ppm/Fulfillment
- Copy contents of this repository to that directory
- Run
php bin/magento setup:upgrade
in the installation root - Run
php bin/magento setup:di:compile
- Verify module status:
$ bin/magento module:status
- Clear the cache:
$ bin/magento cache:clean
Configuration
To use this plugin, you will need:
- An active account with PPM Fulfillment
- An active third-party API integration and API key
- The PPM API URL (a default is provided)
- Your "Owner Code" (which you'll get from PPM)
- An active Magento store
Step 1: Set up the plugin
First, on the side menu, select Stores > All Stores.
From there, you'll want to select the correct Web Site. Each row corresponds to a store in your site. If you have multiple stores, you will need to repeat this process for each store using a different PPM Third Party Integration API Key each time.
This will open up your site configuration. The three PPM-specific fields are:
- PPM API Key (provided by PPM)
- PPM Owner Code (provided by PPM)
- PPM API URL (you'll almost certainly want to leave the default value of
https://portal.ppmfulfillment.com/api/External/ThirdPartyOrders
)
All three of these fields must be filled in before orders can be submitted to PPM automatically.
Step 2: Configure Products
Assuming you have the plugin set up correctly, you next need to configure individual products. For each product you want fulfilled by PPM, you will need to:
- Indicate that the product is fulfilled by PPM
- Provide a PPM product ID (provided by PPM)
We make the assumption that you will have some products fulfilled by PPM and some products fulfilled through other channels (whatever those might be). Thus, we ask that you explicitly indicate individual products to be fulfilled by PPM.
When a customer places an order, if that order has any PPM-fulfilled products
(identified by both having a "true" value for Fulfilled by PPM?
and a PPM
Product SKU), those products (and their quantities) are sent along to PPM as the
final step of the order process. Any non-PPM-fulfilled products in an order will
not be sent to PPM.
Step 3: PPM Fulfillment Request From Magento(automated)
When a new order is created, this extention will iterate through the catalog products included in the order and build a list of catalog products to be fulfilled by PPM. A catalog item must have a PPM Product ID
value and Fulfilled by PPM
must be set to true
or this catalog product will not be included in the request to PPM.
At this point, the Has PPM Shipments?
column on the orders grid view, should show Yes
. Please note, this will show Yes
even before Shipment records have been created by PPM. This column is turned on by default with installation of this extension, but can be hidden from the view via the columns
checklist.
Step 4: PPM Fulfillment Updates Magento Admin(automated)
Once PPM has fulfilled a Shipment with the requested contents, an update will be sent to Magento that does the following:
- Create a new Shipment Record
- Create a new Shipment Tracking Record
- Create one new PPM Shipment Detail record detailing quantity, lot number, and serial number for each item included in the Shipment.
Step 5: Shipment Information Review
Once a Shipment record has been created, it will appear under your Shipments grid. The column Fulfilled by PPM?
will show Yes
if a Shipment was created by PPM Fulfillment. This column is turned on by default with installation of this extension, but can be hidden from the view via the columns
checklist.
The Shipments view page will provide information regarding Lot Number
, Serial Number
, and Quantity
regarding a particular shipment.