Magento2 Extended Product Repository
snowio/magento2-extended-product-repository
Extends the Magento 2 product repository. Adds functionality to specify attribute codes for configurable product options and use SKUs for configurable product links.
Build Tests
Code Quality
Tested on Magento 2.4.8-p3
Recent Test History
Each release is tested against the latest Magento version at that time.
Looking for Contributors
Dependency injection compilation fails. Your contribution could help the entire Magento community!
Share This Module's Status
README
Loaded from GitHubMagento 2 Extended Product Repository
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/framework100 or newer -
magento/module-catalog101 or newer -
magento/module-eav100 or newer -
magento/module-configurable-product100 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_codethat 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
This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.