Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bartoszkubicki/magento2-configurable-product-attribute-handles
Magento 2 module adding custom handles basing on product attributes
https://github.com/bartoszkubicki/magento2-configurable-product-attribute-handles
catalog layout layout-handles layout-xml magento magento2 magento2-ex magento2-module product-card product-page
Last synced: 13 days ago
JSON representation
Magento 2 module adding custom handles basing on product attributes
- Host: GitHub
- URL: https://github.com/bartoszkubicki/magento2-configurable-product-attribute-handles
- Owner: bartoszkubicki
- License: mit
- Created: 2021-06-08T21:58:33.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-06-09T06:19:15.000Z (over 3 years ago)
- Last Synced: 2024-11-03T08:42:19.785Z (2 months ago)
- Topics: catalog, layout, layout-handles, layout-xml, magento, magento2, magento2-ex, magento2-module, product-card, product-page
- Language: PHP
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# BKubicki Configurable Product Attribute Handles #
## Overview ##
Module adds custom frontend layout handles\extension points for easier frontend customization of configurable product.
### Features ###
* product card - handles basing on product super attributes, pattern: `catalog_product_view_type_configurable_super_{{attribute_code}}`
* product card - specific templates for configurable options block. Block `vendor/magento/module-swatches/Block/Product/Renderer/Configurable.php:443` allows
only two templates (one from `Magento_Swatches` and the default one from `Magento_ConfigurableProduct`), ignoring any layout instructions.
By adding some data in layout, we can change template for custom one, based on product super attributes:
```
Vendor_Module::product/view/type/options/configurable-super-colour.phtml
```
Such an instruction can be combined with product super attributes handles, but it doesn't have to be.
* product listing - possibility to define additional renderers for configurable super products, pattern: `configurable_super_{{attribute_code}}'`. Usage example:
``````
Don't forget to add alias for renderer, as it is used for renderer picking.
Please see [attached module](examples/BKubicki_ConfigurableProductAttributeHandlesExample.zip) to fully understand possible usage of these features.
## Prerequisites
* PHP 7.3|7.4## Installation ###
To install the extension use the following commands:
```bash
composer require bkubicki/module-configurable-product-attribute-handles
```## Versioning
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/bartoszkubicki/magento2-configurable-product-attribute-handles/tags).
## Changelog
See changelog [here](CHANGELOG.md).
## Authors
* [Bartosz Kubicki](https://github.com/bartoszkubicki)
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE.md) file for details.