snowio / magento2-extended-product-repository
A Magento 2 module which allows product creation with extended attribute option labels
Installs: 184 993
Dependents: 1
Suggesters: 0
Security: 0
Stars: 8
Watchers: 6
Forks: 4
Open Issues: 0
Type:magento2-module
Requires
- php: >=7
- magento/framework: ^100|^101|^102|^103
- magento/module-catalog: ^101|^102|^103|^104
- magento/module-configurable-product: ^100
- magento/module-eav: ^100|^101|^102
Requires (Dev)
- ampersand/travis-vanilla-magento: ^1.0
- phpunit/phpunit: ^4.1|^6
This package is auto-updated.
Last update: 2024-10-13 11:42:29 UTC
README
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 newermagento/module-catalog
101 or newermagento/module-eav
100 or newermagento/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