Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
product_types.php
Go to the documentation of this file.
1 <?php
6 return [
7  'types' => [
8  'type_one' => [
9  'name' => 'type_one',
10  'label' => 'Label One',
11  'model' => 'Instance_Type',
12  'composite' => true,
13  'index_priority' => 40,
14  'can_use_qty_decimals' => true,
15  'is_qty' => true,
16  'sort_order' => 100,
17  'price_model' => 'Instance_Type_One',
18  'price_indexer' => 'Instance_Type_Two',
19  'stock_indexer' => 'Instance_Type_Three',
20  ],
21  'type_two' => [
22  'name' => 'type_two',
23  'label' => false,
24  'model' => 'Instance_Type',
25  'composite' => false,
26  'index_priority' => 0,
27  'can_use_qty_decimals' => true,
28  'is_qty' => false,
29  'sort_order' => 0,
30  'allowed_selection_types' => ['type_two' => 'type_two'],
31  'custom_attributes' => ['some_name' => 'some_value'],
32  ],
33  'type_three' => [
34  'name' => 'type_three',
35  'label' => 'Label Three',
36  'model' => 'Instance_Type',
37  'composite' => false,
38  'index_priority' => 20,
39  'can_use_qty_decimals' => false,
40  'is_qty' => false,
41  'sort_order' => 5,
42  'price_model' => 'Instance_Type_Three',
43  'price_indexer' => 'Instance_Type_Three',
44  'stock_indexer' => 'Instance_Type_Three',
45  ],
46  ],
47  'composableTypes' => ['type_one' => 'type_one', 'type_three' => 'type_three']
48 ];