Shopify 虽然是一个非常大的电商平台,但他们的目标客户都是中小商家,也就是说Shopify 上面的店铺一般都很小,产品种类不多。相对来说,Shopify 的店铺产品信息架构设计的比较轻,但某些方面又不失灵活性。

总体来讲,Shopify 的产品结构是这样的:Collection > Product > Variant,即:类目产品变种三层结构。

Product Type

Product Type 和Product 是一对多关系,一个产品只能有一个类型,一个类型可以包含多种产品。特点是简单粗暴,让使用者容易理解。但其实这种设计带来的问题也很明显,对于像西红柿应该放到水果还是蔬菜类型下这种问题很难解决。而现实中,无论如何精心的规划产品类型,都会出现一个产品既属于 A 又属于 B 的情况。更何况,对客户来说,也分的不是那么清楚。

Set Product Type For Product

Custom Collection

为了解决一个产品只能有一种类型带来的困境,于是出现了 Collection 这种东西。 Shopify 这种无层级的 Collection 与其说是类目,不如称为分面(Facet)。实现上,Collection 和 Product 是通过一个中间表关联,产品和类目为多对多关系,中间表存有位置等信息为了排序。

其中,Collection 又分为 Custom Collection 和 Smart Collection。

custom_collection-product

custom collection is a grouping of products that a shop owner can create to make their shops easier to browse. A shop owner creates a custom collection and then selects the products that will go into it.

按 Shopify 的文档的解释,Custom Collection 就是店家自己组合的一堆产品,当然这些产品可能有着某些共同的特征(也可能没有)。下面是设置 Custom Collection 的方法:

Create Custom Collection

Set Collections For Product

Smart Collection

smart_collection-product Shopify 文档对 Smart Collection 的解释是:

smart collection is a grouping of products defined by simple rules set by shop owners. A shop owner creates a smart collection and then sets the rules that determine which products go in them. Shopify automatically changes the contents of smart collections based on their rules.

其实 Smart Collection 是根据产品自身属性的过滤后的一组结果。Smart 的地方是,这些产品在条件改变(例如,价格变化)之后,后自动变更自己所属的 Collection,当然,Smart Collection 的 Rule 修改时也同样。

顺便说一下,因为要保留产品在 Collection 里的排序信息,Smart Collection 里的产品并不是直接通过搜索条件拉出来的,这个特性的复杂度还是很高的。

下面是 Smart Collection 的设置方式(其实就是搜索条件):

Create Smart Collection

Tag

Tag 这种松散、扁平的结构可以用来拟补 Collection 和 Product Type 这种太过于正式的组织方式,可能更多侧重于 SEO 效果,对于管理组织上帮助不是很大。 Set Tags For Product

Variant

SPU 和 SKU 的关系可能了解过电商的都清楚,这里就不多解释了。 Create Variants