Categories
Pacemaker Import Community provides the command import:categories command for the category import.
- The individual parts of the file name must match the pattern as followed:
category-import_20190608-114344_01.csv<IMPORT-DIRECTORY>/<PREFIX>_<FILENAME>_<COUNTER>.<SUFFIX>
- <IMPORT-DIRECTORY>:
-
is by default the loation of your working directory
<ROOT-DIRECTORY>/var/pacemaker/import/-
The
var/pacemaker/importdirectory is not created after the installation by default
-
- PREFIX:
-
The
<PREFIX>of the import filename represents thecategory-importarea. - DELIMITER (
_): -
The mandatory Delimiter (
_) for the import filename between<PREFIX>and<FILENAME>is a underscore (_). - FILENAME:
-
The filename is a autogenerated combination of date and time.
-
As a result, the filename look like
category-import_20190608-114344_01.csv.
-
- DELIMITER (
_): -
The mandatory Delimiter (
_) for the structured filename between<FILENAME>and<COUNTER>is underscore (_). - COUNTER:
-
is a incremental number with two digits starting with
01. - SUFFIX (filename extension):
-
The Pacemaker Import Community uses the
<SUFFIX>.csvas default for the import files.
|
.OK file:
Bunch import:
|
Your CSV file var/pacemaker/import/category-import_20190608-114344_01.csv is now ready for import.
Unique identifier
-
The unique identifier for the product import is the SKU
-
For categories, it is more complex because Magento uses a string, based on the single category IDs, separated by a slash (
/), e.g.,1/2/120/1502. -
Since e.g., the PIM system does not recognize these IDs, the category as a replacement requires a string with the names of the admin store categories instead of the IDs and expects this string in the dedicated table column
path. -
The results in the given values could look like
default category/women/tops/hoodies & sweatshirts -
Often, category names themselves contain a slash (
/)-
Then the category name must get enclosed with the default appended character, e.g., the double apostrophes (
")
-
-
The
additional_attributecolumn of the product import is necessary to ensure that the path can get extracted and the category gets added to the correct parent node
"Default Category/Dachdecker- & Spenglerarbeiten/""Kehl-/Traufenanschlüsse & -Belüftungen""/""Trauf-/Lüftungsrollen"""
Columns
- The CSV file with the categories for Magento 2 CE/EE consists of the following columns
| Column Name | Type | Mandatory | Example | Description |
|---|---|---|---|---|
|
yes |
|
The specific store view(s) where the category is available
|
|
|
yes |
|
Assign the product to a specific attribute set or product template based on the product type.
|
|
|
yes |
|
Complete category path, including the root category |
|
|
yes |
|
The category name specified here appears in the navigation and is also the name used by customers to identify the category |
|
|
yes |
|
Enable/disable the category |
|
|
yes |
|
If the category is flagged as anchor, the category products as well as the products of the subcategories will be listed |
|
|
yes |
|
The category will be included in the menu |
|
|
yes |
|
The category name is used for fulltext search on products |
|
|
yes |
|
|
|
|
yes |
|
Unique Category URL key |
|
|
no |
|
The category description will be displayed on the category page |
|
|
no |
|
Absolute or relative path to a category image file |
|
|
no |
|
Category title
|
|
|
no |
|
Category meta keywords
|
|
|
no |
|
Category meta description
|
|
|
no |
|
Unique ID of a CMS block
|
|
|
no |
|
Category position in the navigation |
|
|
no |
|
Custom design name used to display the catgory |
|
|
no |
|
Start date for the scheduled design update |
|
|
no |
|
End date for the scheduled design update |
|
|
no |
|
|
|
|
no |
|
Custom page layout update in XML format
|
|
|
no |
|
Comma separated product list sortings for the catgory |
|
|
no |
|
Default product list sorting for the category |
|
|
no |
|
If set to 1, the design will also be applied to the products listed in the category |
|
|
no |
|
Overrides the custom design settings with the parent design settings |
|
|
no |
|
The layered navigation price steps |
|
|
no |
|
Category creation date |
|
|
no |
|
The date when the category has been updated |
|
|
no |
|
A comma separated list with additional attributes
|