Attributes
Pacemaker Community Edition (CE) provides an attribute import and the appropriate command import:attributes
therefore.
You can find more information about how to invoke the command in the usage section.
-
The filename for the dedicated MSI import must match the pattern
<PREFIX>_<FILENAME>_<COUNTER>.csv
. -
The default
<PREFIX>
isattribute-import
, the<FILENAME>
is a combination of date and time like20190608-114344
, and the<COUNTER>
is a incremental number with two digits starting with01
. -
As a result, the filename is look like
attribute-import_20190608-114344_01.csv
. -
Additionally, the appropriate
.ok
file is needed.
|
Unique identifier
-
The unique identifier for the attribute import is the attribute code.
-
The attribute code is a mandatory field that has been available in the column
attribute_code
on every row of the CSV file.
Columns
The CSV file with the attributes for the Magento 2 CE/EE consists of the following columns:
Column Name | Type | Example | Description |
---|---|---|---|
store_view_code |
|
|
The specific store view(s) for attribute translations. |
attribute_set_name |
|
|
Assigns the attribute to a specific attribute set. |
attribute_group_name |
|
|
Assigns the attribute to a specific attribute group. |
entity_type_code |
|
|
The entity type code, the attribute is bound to. |
attribute_code |
|
|
The unique attribue code |
sort_order |
|
|
The sort order for the attributes in the backend/frontend. |
attribute_option_values |
|
|
A comma (,) separated list with the attribute options and |
attribute_option_swatch |
|
|
A pipe (|) separated list with the attribute option If the attribute is swatch type (see additional_data column). |
attribute_option_sort_order |
|
|
The sort order for the attribute options |
attribute_model |
|
|
The model to load the EAV data from (must be the FQCN |
backend_model |
|
|
The model to convert the user input (must be the FQCN |
backend_table |
|
|
The table to store the user input. |
frontend_model |
|
|
The model to validate the user input (must be the FQCN |
frontend_input |
|
|
The frontend input type (must be one of hidden, |
frontend_label |
|
|
The label for the attribute in the admin store. |
frontend_class |
|
|
A CSS class name. |
source_model |
|
|
The model to load the available values (must be the FQCN |
frontend_input_renderer |
|
|
Frontend input renderer (must be the FQCN |
apply_to |
|
|
A comma (,) separated list with product types; |
backend_type |
|
|
The attributes backend type (must be |
is_required |
|
|
Whether or not the attribute value is mandatory. |
is_user_defined |
|
|
Whether or not, the attribute is user-defined. |
default_value |
|
|
The attributes default value (has to depend on |
is_unique |
|
|
Whether or not the attribute must contain a |
note |
|
|
A custom note for the attribute (will not be |
is_global |
|
|
Whether or not the attribute is global and can |
is_visible |
|
|
Whether or not, the attribute is visible |
is_searchable |
|
|
Whether or not, the attribute is |
is_filterable |
|
|
Whether or not, the attribute will be |
is_comparable |
|
|
Whether or not the attribute can be used in |
is_visible_on_front |
|
|
Whether or not the attribute is visible on |
is_html_allowed_on_front |
|
|
Whether or not the attribute value allows |
is_used_for_price_rules |
|
|
Whether or not the attribute can be used |
is_filterable_in_search |
|
|
Whether or not the attribute values can |
used_in_product_listing |
|
|
Whether or not the attribute values will |
used_for_sort_by |
|
|
Whether or not the attribute values can be |
is_visible_in_advanced_search |
|
|
Whether or not, the attribute is visible in |
position |
|
|
Position of the attribute in the layered |
is_wysiwyg_enabled |
|
|
Whether or not, the WYSIWYG editor has to be |
is_used_for_promo_rules |
|
|
Whether or not, the attribute can be used |
is_required_in_admin_store |
|
|
Whether or not, the attribute must has a |
is_used_in_grid |
|
|
Is used in the grid. |
is_visible_in_grid |
|
|
Is visible in the grid. |
is_filterable_in_grid |
|
|
Is filterable in the grid. |
search_weight |
|
|
Search weight. |
additional_data |
|
swatch_input_type=visual, update_product_preview_image=0, |
A comma (,) separated list with additional attributes, |