In standard Magento the custom options on a product page are rendered one after another without a reliable way to tell them apart. This module wraps each option in its own container that carries the option’s ID, its type, a name derived from the option title and, if set, the option code. Themes can use this to style particular options, and other Infrangible modules use it to place descriptions, info boxes, quantity fields and similar elements next to the right option.
Features
- Each custom option on the product page gets its own container.
- The container identifies the option by ID, option type and title, and by its code when Catalog Product Option Code is installed.
- Basic styling so that the wrapped options keep the usual form layout of the Luma theme.
Configuration
There is nothing to configure. The module works right after installation.
Good to know
Merchants normally do not install this module directly. It is installed automatically by modules such as Catalog Product Option Description, Catalog Product Option Info, Catalog Product Option Product, Catalog Product Option Qty and Catalog Product Option Composite.
Installation
Install the module with Composer in your Magento root directory:
composer require infrangible/m2-catalog-product-option-wrapperThen enable it and update the store as described in the installation guide. Composer installs the required modules listed on this page automatically.