Skip to content

Commit b8c22b1

Browse files
committed
011_product_modeling.md: Continue bike modeling exercise
1 parent 7ccac99 commit b8c22b1

File tree

1 file changed

+28
-19
lines changed

1 file changed

+28
-19
lines changed

docs/trainings/commerce/pim/011_product_modeling.md

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ The "Product specification" field type (`ibexa_product_specification`) brings in
4141

4242
Notice that you don't need to add a field or an attribute for price.
4343
Prices are handled by a particular side mechanism, the price engine, which is treated later in the training with VAT, currencies, etc.
44+
But, also notice that VAT is set at Product Type level.
4445

4546
## Attributes VS Fields
4647

@@ -108,6 +109,9 @@ And it doesn't involve different brands and models for the same feature yet.
108109
- Material: [Steel, Aluminium, Titanium, Carbon, Wood, Bamboo, Mixed, …]
109110
- Type: [Rigid, Suspension, Dropper, …]
110111
- Attachment: [Quick release, Bolt/nut, Anti-thief, …]
112+
- Pedals:
113+
- Type: [Flat, Quill, Clipless, …]
114+
- Foldable: yes/no
111115
- Gears:
112116
- Front gears:
113117
- Speed count: [1…3]
@@ -116,7 +120,7 @@ And it doesn't involve different brands and models for the same feature yet.
116120
- Control type: [Lever, Ring, …]
117121
- Control placement: [Handlebar, Frame, …]
118122
- Rear gears:
119-
- Speed count: [1…8]
123+
- Speed count: [1…12]
120124
- Control type: [Bowden cable, Hydraulic, Electronic, …]
121125
- Type: [Single, External, Hub internal, Crank gearbox, …]
122126
- Control transmission: [Bowden cable, Hydraulic, Electronic, …]
@@ -152,32 +156,37 @@ A bad practice would be to try to have a unique product type for modeling all th
152156
For example, series of product won't necessarily vary on the same attributes.
153157
TODO: To have one product type per base product can happen.
154158

159+
The exercise consists into modeling the following catalog of mountain bikes (MTB).
160+
The catalog is split in series, each series got few base products with variations.
155161

162+
To simplify casual customer experience (and above all the exercise), the vendor don't give a lot of choices.
156163

164+
- Manufacturers, brands and models are predefined.
165+
- Front and rear gears, transmission and shifting system are set in one bundle with predefined models.
157166

158-
Mountain Bike (MTB)
159-
- MTB 4 series
160-
- Fuji (3776€) (MTBS4-4)
161-
- Frame: [Diamond, Step-through]
162-
- TODO
163-
- Matterhorn (4478€) (MTBS4-5)
164-
- Annapurna (8091€) (MTBS4-6)
165-
- Frame: [Diamond w/ suspension]
166-
- Etna (3369€) (MTBS4-7)
167-
- MTB 5 series
168-
- Kilimanjaro (5895€) (MTBS5-0)
169-
- Stádda (1392€) (MTBS5-1)
170-
- Aconcagua (6960€) (MTBS5-2)
171-
- Ventoux (1910€) (MTBS5-3)
172-
- Castor (4225€) (MTBS5-4)
167+
The following table shows only properties that can vary. When not all combinations are available, the product has multiple lines.
173168

169+
| Name | Code | Material | Frame shapes | Frameset + wheel sizes | Saddle | Paint job | Gears | Price |
170+
|:------------|:-------------|:----------|:---------------------------|:-----------------------|:-----------------|:-----------------------|:-------|------:|
171+
| Fuji | MTB-S4-4-1-* | Aluminium | Diamond | [S, M, L, XL] + 29″ | Thin | [Sakura, Ronin] | B-2x10 | 3776€ |
172+
| Fuji | MTB-S4-4-2-* | Aluminium | [Diamond, Step-through] | [S, M, L] + 29″ | [Thin, Large] | [Sakura, Ronin] | B-1x10 | 3676€ |
173+
| Fuji | MTB-S4-4-3-* | Aluminium | [Diamond, Step-through] | XS + 27.5″ | [Thin, Large] | [Sakura, Ronin] | B-1x08 | 3666€ |
174+
| Matterhorn | MTB-S4-5-* | Aluminium | Diamond | [S, M, L, XL] + 29″ | [Thin, Large] | [Snow, Rock] | B-2x12 | 4478€ |
175+
| Annapurna | MTB-S4-6-* | Carbon | Diamond w/ suspension | [S, M, L, XL] + 29″ | [Thin, Noseless] | Annapurna | A-3x12 | 8091€ |
176+
| Etna | MTB-S4-7-1-* | Aluminium | [Diamond, Step-through] | [S, M, L, XL] + 29″ | [Thin, Large] | Etna | B-1x06 | 3369€ |
177+
| Etna | MTB-S4-7-2-* | Aluminium | [Diamond, Step-through] | XS + 27.5″ | [Thin, Large] | Etna | B-1x06 | 3339€ |
178+
| Kilimanjaro | MTB-S5-0-* | Aluminium | Step-through w/ suspension | [S, M, L, XL] + 29″ | [Thin, Large] | [Shira, Mawenzi, Kibo] | A-2x12 | 5895€ |
179+
| Stádda | MTB-S5-1-* | Aluminium | Step-through | XS + [26″, 27.5″] | Large | [Sunrise, Sunset] | C-1x03 | 1392€ |
180+
| Aconcagua | MTB-S5-2-* | Carbon | Diamond w/ suspension | [S, M, L, XL] + 29″ | [Thin, Noseless] | [Condor, Llama] | A-3x12 | 6960€ |
181+
| Ventoux | MTB-S5-3-* | Aluminium | Step-through | XS + [26″, 27.5″] | [Thin, Large] | [Provence, Mistral] | C-1x04 | 1910€ |
182+
| Castor | MTB-S5-4-* | Aluminium | Diamond | [S, M, L, XL] + 29″ | [Thin, Large] | [Castor, Pollux] | B-2x12 | 4225€ |
174183

175-
- Create the attribute groups
184+
- Create the attribute group(s)
176185
- Create the attributes
177-
- Create the product types
186+
- Create the product type(s)
178187
- Create the products
188+
- Create the variants
179189

180-
TODO: Variants
181190
TODO: [Create custom product code generator strategy](create_product_code_generator.md)
182191

183192
Your new products are in the "Uncategorized products" section of the **Products** admin page.

0 commit comments

Comments
 (0)