Download the PHP package infrangible/m2-catalog-product-option-wrapper without Composer
On this page you can find all versions of the php package infrangible/m2-catalog-product-option-wrapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download infrangible/m2-catalog-product-option-wrapper
More information about infrangible/m2-catalog-product-option-wrapper
Files in infrangible/m2-catalog-product-option-wrapper
Package m2-catalog-product-option-wrapper
Short Description Places every custom option on the product page in its own identifiable container, so themes and other Infrangible option modules can target and style individual options.
License MIT
Homepage https://www.infrangible.dev/modules/catalog-product-option-wrapper
Informations about the package m2-catalog-product-option-wrapper
Infrangible Catalog Product Option Wrapper
Adds an element around every custom option on the product page, so that themes and other modules can find and style
single options. The element has the ID product-option-<option ID>, the attribute data-option-id and these CSS
classes:
field-wrapperfield-wrapper-<type>, for examplefield-wrapper-drop_downfield-wrapper-<title>: the title of the option in lower case, with spaces replaced by underscores and an underscore before upper case letters, for examplefield-wrapper-gift__wrapfor "Gift Wrap"field-wrapper-<code>, if the option has a code (for example from Infrangible Catalog Product Option Code)
Requirements
- Magento Open Source or Adobe Commerce 2.4.6 or newer
- PHP 8.2 or newer
Installation
In production mode, also run bin/magento setup:di:compile and bin/magento setup:static-content:deploy.
Usage in other modules
Other lists of options can use the same wrapper: add a block of the class
Infrangible\CatalogProductOptionWrapper\Block\Product\View\Options\Option with the template
Infrangible_CatalogProductOptionWrapper::product/view/options/option.phtml as child product_option_wrapper of the
block that renders the options, and wrap the HTML of each option with
Infrangible\CatalogProductOptionWrapper\Helper\Data::renderWrapper($block, $option, $optionHtml).
License
Infrangible Catalog Product Option Wrapper is licensed under the MIT License - see the LICENSE file for details.
All versions of m2-catalog-product-option-wrapper with dependencies
fewedev/base Version ~2.4.0
infrangible/m2-foundation Version ~3.0.1
magento/framework Version ~103.0.6
magento/module-catalog Version ~104.0.0