19 ->setAttributeSetId(4)
21 ->setName(
'Simple Product')
22 ->setSku(
'simple_with_custom_options')
25 ->setShortDescription(
"Short description")
27 ->setDescription(
'Description with <b>html tag</b>')
28 ->setMetaTitle(
'meta title')
29 ->setMetaKeyword(
'meta keyword')
30 ->setMetaDescription(
'meta description')
31 ->setVisibility(\
Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH)
32 ->setStatus(\
Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED)
35 'use_config_manage_stock' => 1,
37 'is_qty_decimal' => 0,
40 )->setCanSaveCustomOptions(
true)
41 ->setHasOptions(
true);
45 'previous_group' =>
'select',
46 'title' =>
'Test Select',
47 'type' =>
'drop_down',
52 'option_type_id' =>
null,
53 'title' =>
'Option 1',
54 'price' =>
'-3,000.00',
55 'price_type' =>
'fixed',
56 'sku' =>
'3-1-select',
59 'option_type_id' =>
null,
60 'title' =>
'Option 2',
61 'price' =>
'5,000.00',
62 'price_type' =>
'fixed',
63 'sku' =>
'3-2-select',
68 'previous_group' =>
'select',
69 'title' =>
'Test Radio',
75 'option_type_id' =>
null,
76 'title' =>
'Option 1',
78 'price_type' =>
'fixed',
82 'option_type_id' =>
null,
83 'title' =>
'Option 2',
84 'price' =>
'40,000.00',
85 'price_type' =>
'fixed',
91 'previous_group' =>
'text',
92 'title' =>
'Test Field',
97 'price_type' =>
'fixed',
99 'max_characters' => 100,
$productRepositoryFactory
static getObjectManager()