Line Item Extension

This component provides extension attributes for order items. It can be enabled independent to the order export component. It generates line item numbers, which are unique within the dedicated order. This 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 done in Magento’s admin UI Stores > Configuration > Pacemaker > Order Workflow

General Settings

line item extension settings
Figure 1. Line Item Extension Settings
Configuration Description Default Value

Enable Line Items

Feature toggle for the whole module. If enabled the extension attributes will be loaded for each order item.

No

Enable Number Generator

If enabled a plugin will generate unique line item numbers per order every time a order is placed

No

Number Offset

This option appears if Enable Number Generator is set to Yes. The value defines the count sequence for line item numbers. For example the value 3 would mean the numbers will be 3, 6, 9, 12, and so on.

1

String Padding

Configuration Description Default Value

Enable String Padding

If enabled the function str_pad will be applied to the generated number. Please refer to the function description in PHP manual.

No

String Padding Length

Defines the number of chars to which the number will fill up

6

String Padding Character

The character, which will be used to fill up the padding

0

String Padding Direction

In which direction the padding should be applied

Left

Example

For SAP systems we usually use the settings:

Configuration Value

Enable Line Items

Yes

Enable Number Generator

Yes

Number Offset

10

Enable String Padding

Yes

Enable String Length

6

Enable String Character

0

Enable String Direction

LEFT

This leads in line item numbers like 000010, 000020, 000030, …​