- 1 Minute To Read
One and the same product can have multiple variants, such as size or color. In the context of the Spryker Commerce OS, such product variations are called product variants, or concrete products. To distinguish between different product versions, to keep track of their stock and to provide a better shopping experience to customers, the product variants are grouped under an abstract product.
Product data that differ abstracts from concretes
So the topmost hierarchical level of a product is the abstract product. The abstract product does not have its own stock, but defines various default properties for the descendant product variants. The product variant always belongs to one abstract product, has a distinctive stock, and always differs from another product variant with at least one super product attribute.
The following table summarizes differences between the abstract products and the product variants:
|Product data||Abstract Product||Product Variant|
Products behavior on the Storefront
On the Storefront, only abstract products appear in the product catalog and can be searched for. The product variants are always a part of an abstract product. Therefore, abstract product and all its product variants share the same URL.
Le't consider an example illustrating the relation between abstract and concrete products and their behavior on the Storefront:
In this example, a T-shirt, the abstract product, is available in sizes S, M, and L, which are three different product variants, each holding its own stock. When you search T-shirt on the Storefront, it's the abstract product that appears as the search result. Your customers can not buy the abstract product. On the product detail page, they have to select between the product variants S, M, L to put the T-shirt product to cart.
Grouping the product variants under an abstract product allows you to build a clear product hierarchy to provide great customer experience and to manage your products effectively. However, keep in mind that creating a product structure is a solid business decision that affects both the visual representation and behavior of your online store.