Line item extension
This component provides extension attributes for order items.
-
It can be enabled independent of the order export component.
-
It generates line item numbers, which are unique within the dedicated order.
-
It is something Magento does not have by default but is required sometimes by ERP/OMS.
Configuration
The configurations for the line item extension can be executed in Magento’s admin UI
Stores > Configuration > Pacemaker > Order Workflow
General Settings
Configuration | Default Value | Description |
---|---|---|
Enable Line Items |
|
Feature toggle for the whole module. If enabled, the extension attributes will be loaded for each order item. |
Enable Number Generator |
|
If enabled a plugin will generate unique line item numbers per order every time an order is placed |
Number Offset |
|
This option appears if The value defines the count sequence for line item numbers. For example, the value |
String Padding
Configuration | Default Value | Description |
---|---|---|
Enable String Padding |
|
If enabled the function Please refer to the str_pad() function description in PHP manual. |
String Padding Length |
|
Defines the number of chars to which the number will fill up |
String Padding Character |
|
The character, which will be used to fill up the padding |
String Padding Direction |
|
In which direction the padding should be applied |
Example
For SAP systems, we usually use the settings:
Configuration | Value |
---|---|
Enable Line Items |
|
Enable Number Generator |
|
Number Offset |
|
Enable String Padding |
|
Enable String Length |
|
Enable String Character |
|
Enable String Direction |
|
This leads in line item numbers like 000010
, 000020
, 000030
, …