catgento/magento-2-product-attribute-import

适用于 Magento 2 的产品属性导入器

1.0.3 2023-04-16 07:00 UTC

This package is not auto-updated.

Last update: 2024-09-15 13:14:57 UTC


README

这是一个 Magento 模块,它向 bin/magento shell 添加了一个新的命令 (import:productattribute),以便根据 SKU 导入产品属性。

安装

Composer

    composer require catgento/magento-2-product-attribute-import

ZIP 文件

下载模块并将其解压到 app/code/Catgento/ProductAttributeImport 文件夹下。

如何使用

创建包含产品信息的 CSV 文件

必填列

sku

额外列(您可以添加任意数量的额外列,只要它们是产品属性)。请注意,第一行列的值将用于设置产品数据

name
description
url_key
url_path
...

示例文件

sku,url_key,url_path
1000,white-mug,white-mug.html
1119,mug-with-calendar,mug-with-calendar.html
1001,mug-with-inner-colour,mug-with-inner-colour.html

在 Magento 2 中导入 CSV 文件

您可以使用以下 shell 命令进行导入:

bin/magento import:productattribute -p var/import/product-attributes.csv