- 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:
- Let's add a global product attribute under Products | Attributes.
- 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:
- Then, click on Configure terms. This will let you configure individual values.
- Now, go ahead and add your values, for example, Red, Blue, and Green:
Now, let's take a look at variations for the products.
- C++程序設(shè)計(jì)(第3版)
- Python自動(dòng)化運(yùn)維快速入門
- C# 從入門到項(xiàng)目實(shí)踐(超值版)
- 從程序員到架構(gòu)師:大數(shù)據(jù)量、緩存、高并發(fā)、微服務(wù)、多團(tuán)隊(duì)協(xié)同等核心場景實(shí)戰(zhàn)
- 機(jī)械工程師Python編程:入門、實(shí)戰(zhàn)與進(jìn)階
- Java軟件開發(fā)基礎(chǔ)
- SQL基礎(chǔ)教程(視頻教學(xué)版)
- Working with Odoo
- C語言開發(fā)基礎(chǔ)教程(Dev-C++)(第2版)
- Learning R for Geospatial Analysis
- 軟件項(xiàng)目管理實(shí)用教程
- INSTANT Silverlight 5 Animation
- Python編程:從入門到實(shí)踐(第3版)
- Java Web從入門到精通(第2版)
- Mastering Leap Motion