test-magenx/module-configurable-product

100.4.3 2021-10-10 22:19 UTC

This package is auto-updated.

Last update: 2024-09-13 07:10:03 UTC


README

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.

配置产品允许客户通过选择选项来选择他们想要的变体。例如,店主出售两种颜色和三种尺寸的T恤。

结构

ConfigurableProduct/ - 该目录声明了模块使用的ConfigurableProduct元数据。

有关Magento 2中模块的典型文件结构的信息,请参阅模块文件结构

扩展性

扩展开发者可以与Magento_ConfigurableProduct模块交互。有关Magento扩展机制的更多信息,请参阅Magento插件

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

更多信息

通过主题view.xml配置配置变量

修改主题view.xml文件中gallery_switch_strategy变量的值以配置用户在切换产品配置时如何更新画廊图片。

了解如何配置view.xml文件中的变量

gallery_switch_strategy变量有两个可用值

如果未定义gallery_switch_strategy变量,将使用默认值replace

例如,将这些代码行添加到主题view.xml文件中将设置画廊行为为replace模式。

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