Woocommerce 中的相关产品变化 [英] Dependent Product Variations in Woocommerce

查看:26
本文介绍了Woocommerce 中的相关产品变化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 woocommerce 中实施相关的产品变体.问题是产品必须有大号和小号可供选择的尺寸.大号有颜色可供选择,但小号产品具有透明外观.

I am implementing dependent product variations in woocommerce. The problem is that the product has to sizes it is available in Large and Small. The Large size has colors available but the small size of product has a transparent look.

我为产品尺寸和颜色添加了两个属性.现在我想要发生的是,当用户选择大尺寸颜色时,应该显示但如果他选择小尺寸,则颜色选项选择应该变为空白.

I have added two attributes to the product Size and Color. Now what i want to happen is that when the user selects Large size colors should show up but if he chooses small size the color options select should go blank.

除了在小尺寸的颜色选择中使用无颜色选项之外,还有其他方法吗?

Is there any other way then using a no color options in colors select for Small size?

推荐答案

基本上你只需要移除颜色的小"变化.

Basically you just need to remove the "small" variations with color.

  1. 确保您的颜色选项在产品属性部分的尺寸选项之后排序.请务必保存.
  2. 在您的颜色选项组中创建一种透明颜色.
  3. 移除包含 Small 和颜色的所有变体,除了 small 和 transparent
  4. 如果用户选择小,那么他们将只有透明的选项

我只是在一个网站上做了完全相同的事情.

I just did the exact same thing on a site.

这篇关于Woocommerce 中的相关产品变化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆