test-magenx / module-configurable-product
无
Requires
- php: ~7.3.0||~7.4.0
- magento/framework: 103.0.*
- magento/module-backend: 102.0.*
- magento/module-catalog: 104.0.*
- magento/module-catalog-inventory: 100.4.*
- magento/module-checkout: 100.4.*
- magento/module-customer: 103.0.*
- magento/module-eav: 102.1.*
- magento/module-media-storage: 100.4.*
- magento/module-quote: 101.2.*
- magento/module-store: 101.1.*
- magento/module-ui: 101.2.*
Suggests
- magento/module-configurable-sample-data: Sample Data version: 100.4.*
- magento/module-msrp: 100.4.*
- magento/module-product-links-sample-data: Sample Data version: 100.4.*
- magento/module-product-video: 100.4.*
- magento/module-sales: 103.0.*
- magento/module-sales-rule: 101.2.*
- magento/module-tax: 100.4.*
- magento/module-webapi: 100.4.*
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>