Price Import

The price import is one of the predefined pipelines (What is a pipeline?), which you can use after installing Pacemaker. There are sample files, which can be used as a template for your data files or testing purposes (see Run your first predefined import jobs). On this page, you will read how it works, how to configure, and how to customize this pipeline.

Components & Concept

Please refer to Import Processes for technical insights.

Pipeline Definition

The import pipeline contains the following steps:

Stage Step Description

Prepare

move_files

Move import files to the working directory of the current pipeline

Transformation

price_transformation

This step has a dummy executor in default and is designed to customize for mapping and transformation purpose

Pre-Import

index_suspender_start

Activates delta index suspending to avoid cron based re-indexing during the import

Import

price_import

Update price data

Post-Import

index_suspender_stop

Disable suspending of delta indexers

Configuration

In Magento’s backend (admin-ui) you’ll find settings for the price import under following path: Stores > Configuration > Pacemaker > Import > Price Import

config price import
Figure 1. Configuration in Magento Backend
Configuration Description Default Value

General Settings > Source Directory

Defines the source directory for import files. This directory will be observerd by Pacemaker in oder to intialize a import pipeline. This setting is for all pacemaker imports.

var/pacemaker/import

Price Import > Enable Price Import Pipeline

Active toggle for the source directory observer for price import.

Yes

Price Import > File Name Pattern

Regular expression, which defines the source file name for source directory observer.

/(price)-import_(?P<identifier>[0-9a-z\-]*)([_0-9]*?).(csv|ok)/i