Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/285.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 关系下拉列表/选择Magento后端中的产品属性_Php_Magento_Drop Down Menu - Fatal编程技术网

Php 关系下拉列表/选择Magento后端中的产品属性

Php 关系下拉列表/选择Magento后端中的产品属性,php,magento,drop-down-menu,Php,Magento,Drop Down Menu,我正在为一家汽车配件公司开发一家Magento商店。有许多特定于车辆的项目需要Make/Model/Year属性,但是我找不到允许创建关系属性下拉列表的扩展-我需要三个下拉列表,其选项根据以前的下拉列表选择动态更改,例如: 下拉列表A有四个车辆品牌。选择Make,然后使用一组特定的选项填充模型下拉列表,依此类推 这在Magento可能吗?我看过一些Make/Model/Year的扩展,但它们都是文本输入——工作人员输入错误的空间太大了。我也尝试过VehicleFits,但它不起作用/抛出了很多错

我正在为一家汽车配件公司开发一家Magento商店。有许多特定于车辆的项目需要Make/Model/Year属性,但是我找不到允许创建关系属性下拉列表的扩展-我需要三个下拉列表,其选项根据以前的下拉列表选择动态更改,例如:

下拉列表A有四个车辆品牌。选择Make,然后使用一组特定的选项填充模型下拉列表,依此类推

这在Magento可能吗?我看过一些Make/Model/Year的扩展,但它们都是文本输入——工作人员输入错误的空间太大了。我也尝试过VehicleFits,但它不起作用/抛出了很多错误,似乎开发已经停止


我已经到处搜索了,如果有任何帮助,我将不胜感激。

不可能直接或直接在“管理属性”下创建相关的产品属性。但是,您可以通过创建可配置的产品使您的属性相互依赖

假设你有两种颜色(黑色和蓝色)和两种尺寸(L、XL),你想让你的颜色取决于尺寸

At first create 2 attributes size and color of type dropdown under Manage attributes and create the attribute options and values. and Assign it to the right attribute set.

Now create the simple products , lets say product A with size L and color Black and product B with color Blue and size XL.

Now create a configurable product lets say AB and associate these two simple products A and B. Save the product.
如果客户打开产品AB,并且选择尺寸L,则只能找到黑色。这就是如何使产品属性相互依赖的方法

资料来源:

或者,这可能是您正在寻找的:

希望能有帮助