定制 snowio/magento2-extended-product-repository 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

snowio/magento2-extended-product-repository

Composer 安装命令:

composer require snowio/magento2-extended-product-repository

包简介

A Magento 2 module which allows product creation with extended attribute option labels

README 文档

README

Build Status codecov

Description

A Magento 2 module that adds the following extension attributes.

  • Attribute code field in configurable product options: Endpoints can now specify an attribute code for a configurable product option.
  • Configurable product linked skus: Endpoints can now specify product skus as configurable product links

Prerequisites

  • PHP 7.0 or newer
  • Composer (https://getcomposer.org/download/).
  • magento/framework 100 or newer
  • magento/module-catalog 101 or newer
  • magento/module-eav 100 or newer
  • magento/module-configurable-product 100 or newer

Installation

composer require snowio/magento2-extended-product-repository
php bin/magento module:enable SnowIO_ExtendedProductRepository
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:flush

Usage

  • A configurable_product_option can now have an attribute_code that enables the endpoint specify the attribute code for a configurable product option.
  • configurable_product_linked_skus allows the endpoint to specify sku's as configurable product links instead of magento ID's.
{
    "product": {
        "type_id": "configurable",
        "sku": "test-from-snowio-configurable",
        "attribute_set_id": 11,
        "name": "test from snow.io configurable",
        "price": 10,
        "visibility": 4,
        "status": 1,
        "custom_attributes": {
            "axis_size": "s_xxl",
            "url_key": "test-from-snowio-configurable.html"
        },
        "extension_attributes": {
            "configurable_product_options": [
                {
                    "extension_attributes": {
                        "attribute_code": "axis_size"
                    }
                }
            ],
            "configurable_product_linked_skus": [
                "test-from-snowio-simple"
            ]
        }
    }
}

License

This software is licensed under the MIT License. View the license

统计信息

  • 总下载量: 197.75k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 3
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 8
  • Watchers: 4
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-11-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固