Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/variables/2.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
Wordpress WooCommerce-隐藏特定变量的属性_Wordpress_Variables_Woocommerce_Attributes - Fatal编程技术网

Wordpress WooCommerce-隐藏特定变量的属性

Wordpress WooCommerce-隐藏特定变量的属性,wordpress,variables,woocommerce,attributes,Wordpress,Variables,Woocommerce,Attributes,我有一个木材产品,我卖的是两个主要属性,松木和硬木 如果他们选择Pine,我想让他们选择顶部的饰面和底部的饰面(两个单独的属性)。但如果他们选择硬木选项,那么我不想选择不同饰面的选项。我花了很长时间想办法完成这个任务,在过去的3个小时里我一直在寻找解决方案 简言之,以下是我提供的属性: 木材类型:松木-硬木 顶饰(仅松木):8个选项可供选择 腿部修饰(仅松木):8个选项可供选择 高度(松木和硬木):4个选项可供选择将产品类型更改为可变。设置你想要的选项。这就是你首先获得属性和变量选项的方式,所以

我有一个木材产品,我卖的是两个主要属性,松木和硬木

如果他们选择Pine,我想让他们选择顶部的饰面和底部的饰面(两个单独的属性)。但如果他们选择硬木选项,那么我不想选择不同饰面的选项。我花了很长时间想办法完成这个任务,在过去的3个小时里我一直在寻找解决方案

简言之,以下是我提供的属性:

木材类型:松木-硬木
顶饰(仅松木):8个选项可供选择
腿部修饰(仅松木):8个选项可供选择

高度(松木和硬木):4个选项可供选择

将产品类型更改为可变。设置你想要的选项。这就是你首先获得属性和变量选项的方式,所以很明显我已经这样做了。但这根本无助于回答我的问题。