macopedia/magento2-categoryimporter 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

macopedia/magento2-categoryimporter

最新稳定版本:1.0.0

Composer 安装命令:

composer require macopedia/magento2-categoryimporter

包简介

Category Importer for Magento 2

README 文档

README

Simple category importer from CSV file. Allows to import / update categories not only from Magento shops (use old shop category ID)

Features

  • adds attribute to category 'Old category ID'
  • adds possibility to add custom attribute codes by command option
  • adds links between parent and child categories (by 'Old category ID')
  • work only for admin store (multi stores are not implemented yet)

Install module

  • add module via composer or download and copy files to app/code/Macopedia/CategoryImporter
  • run bin/magento module:enable Macopedia_CategoryImporter in command line

Usage

NOTICES:

  • please add parent categories before children in file
  • use semicolon (';') as delimiter in file

Attributes supported by default:

  • Required attributes:

    • id
    • name
    • parent_id
  • Optional attributes with predefined values:

    • is_active - default value: 1
    • is_anchor - default value: 1
    • include_in_menu - default value: 1
    • custom_use_parent_settings - default value: 1
  • Base additional attributes:

    • description
    • meta_title
    • meta_keywords
    • meta_description
    • url_key
    • url_path
    • position

Base usage examples

bin/magento import:categories [--path|-p <path to file in Magento dir>] [--additional|-a <additional attributes separated by comma>]

bin/magento import:categories -p var/import/categories-example.csv 
	
bin/magento import:categories -p var/import/categories-example.csv -a my_custom_attribute1,my_custom_attribute2,my_custom_attribute3

Simple CSV file to import categories

id;name;parent_id
10;Category name 1;null
11;Category name 2;null
20;First child of cat 1;10
21;First child of cat 2;11
22;Second child of cat 2;11

统计信息

  • 总下载量: 4.61k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 34
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 34
  • Watchers: 14
  • Forks: 23
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2020-06-10