官术网_书友最值得收藏!

  • Mastering WooCommerce 4
  • Patrick Rauland
  • 228字
  • 2021-06-24 16:46:20

Attributes

To be able to select what you want in a product, WooCommerce has to know what the options are. These options are called attributes and they can be found in Product data | Attributes:

There are two types of attributes:

  • Custom product attribute
  • Global attribute

Functionally speaking, they're almost identical. The biggest difference is that global attributes can be reused between products where custom product attributes have to be created for each product, which means a lot less typing on your end. 

Another difference is that global product attributes can be used for filtering. So, if you have filters on the shop page to help users to navigate your products, you can filter by specific attributes and this can only be done with global product attributes. If you have a product with unique attributes that no other product will have, then it's convenient to use the custom product attributes:

  1. Let's add a global product attribute under Products | Attributes.
  2. Add a Name for the attribute. The attribute is the name of the categorization, for example, colours, sizes, and cuts—not red, small, or v-neck:

  1. Then, click on Configure terms. This will let you configure individual values.
  2. Now, go ahead and add your values, for example, Red, Blue, and Green:

Now, let's take a look at variations for the products.

主站蜘蛛池模板: 叙永县| 青铜峡市| 沙湾县| 荣成市| 周至县| 阿瓦提县| 额尔古纳市| 和龙市| 盘山县| 永和县| 通辽市| 石屏县| 忻城县| 双峰县| 资溪县| 石家庄市| 北京市| 崇左市| 齐齐哈尔市| 开鲁县| 通山县| 义乌市| 多伦县| 博爱县| 左权县| 彭水| 昌图县| 临武县| 公主岭市| 余江县| 梓潼县| 龙陵县| 房产| 龙泉市| 枞阳县| 滨州市| 岑溪市| 兴义市| 灵璧县| 延吉市| 斗六市|