Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 
 
 
Florian Eisenmenger 41ccc32b5d checkin 2 роки тому
..
Api checkin 2 роки тому
Block checkin 2 роки тому
Controller/Adminhtml/Product checkin 2 роки тому
Helper checkin 2 роки тому
Model checkin 2 роки тому
Observer checkin 2 роки тому
Plugin checkin 2 роки тому
Pricing checkin 2 роки тому
Setup checkin 2 роки тому
Test checkin 2 роки тому
Ui checkin 2 роки тому
etc checkin 2 роки тому
i18n checkin 2 роки тому
view checkin 2 роки тому
LICENSE.txt checkin 2 роки тому
LICENSE_AFL.txt checkin 2 роки тому
README.md checkin 2 роки тому
composer.json checkin 2 роки тому
registration.php checkin 2 роки тому

README.md

Magento_ConfigurableProduct module

The Magento_ConfigurableProduct module introduces new product type in the Magento application called Configurable Product. This module is designed to extend existing functionality of Magento_Catalog module by adding new product type.

Configurable Products let the customers select the variant they desire by choosing options. For example, store owner sells t-shirts in two colors and three sizes.

Structure

ConfigurableProduct/ - the directory that declares ConfigurableProduct metadata used by the module.

For information about a typical file structure of a module in Magento 2, see Module file structure.

Extensibility

Extension developers can interact with the Magento_ConfigurableProduct module. For more information about the Magento extension mechanism, see Magento plug-ins.

The Magento dependency injection mechanism enables you to override the functionality of the Magento_ConfigurableProduct module.

Additional information

Configurable variables through the theme view.xml

Modify the value of the gallery_switch_strategy variable in the theme view.xml file to configure how gallery images should be updated when a user switches between product configurations.

Learn how to configure variables in the view.xml file.

There are two available values for the gallery_switch_strategy variable:

Value Description
replace In replace mode, images of the parent configurable product will be replaced by the simple product images upon a configuration change
prepend In prepend mode, the simple product images will be added in front of the parent configurable product upon a configuration change

If the gallery_switch_strategy variable is not defined, the default value replace will be used.

For example, adding these lines of code to the theme view.xml file will set the gallery behavior to replace mode.

<vars module="Magento_ConfigurableProduct">
    <var name="gallery_switch_strategy">replace</var>
</vars>