webdawe/magento-shell-scripts

有用的 Magento Shell 脚本

dev-master 2016-07-05 01:48 UTC

This package is not auto-updated.

Last update: 2024-09-14 19:14:46 UTC


README

  1. 从 CSV 文件更新产品属性

使用方法: php updateProductAttribute.php -- [选项]
-- attribute <attribute_code> : 属性代码 (例如 url_key) - 必选
-- file <filename.csv> : CSV 文件名 - 必选
-- store_id <store_id> : 店铺 ID,如果未提供,将添加到默认店铺。
csv 文件应包含 sku 和属性值,以及带有 sku,attribute_code 的标题行。

  1. 从 CSV 文件更新分类属性

使用方法: php updateCategoryAttribute.php -- [选项]
-- storeId : 店铺 ID - 必选
-- file <filename.csv> : CSV 文件 - 必选
csv 文件应包含 category_id 字段以及任何 / 所有字段 - name, description, meta_title, meta_description。
必须包含带有字段名的标题行。