7 use Magento\Catalog\Api\Data\ProductTierPriceExtensionFactory;
30 'customer_group_id' => \
Magento\Customer\Model\Group::CUST_GROUP_ALL,
40 'customer_group_id' => \
Magento\Customer\Model\Group::CUST_GROUP_ALL,
50 'customer_group_id' => \
Magento\Customer\Model\Group::NOT_LOGGED_IN_ID,
59 ->setPercentageValue(50);
64 'customer_group_id' => \
Magento\Customer\Model\Group::NOT_LOGGED_IN_ID,
75 ->setAttributeSetId(4)
77 ->setName(
'Simple Product')
81 ->setShortDescription(
"Short description")
84 ->setDescription(
'Description with <b>html tag</b>')
85 ->setMetaTitle(
'meta title')
86 ->setMetaKeyword(
'meta keyword')
87 ->setMetaDescription(
'meta description')
88 ->setVisibility(\
Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH)
89 ->setStatus(\
Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED)
92 'use_config_manage_stock' => 1,
94 'is_qty_decimal' => 0,
97 )->setCanSaveCustomOptions(
true)
98 ->setHasOptions(
true);
102 'previous_group' =>
'text',
103 'title' =>
'Test Field',
108 'price_type' =>
'fixed',
110 'max_characters' => 100,
113 'previous_group' =>
'date',
114 'title' =>
'Test Date and Time',
115 'type' =>
'date_time',
119 'price_type' =>
'fixed',
123 'previous_group' =>
'select',
124 'title' =>
'Test Select',
125 'type' =>
'drop_down',
130 'option_type_id' =>
null,
131 'title' =>
'Option 1',
133 'price_type' =>
'fixed',
134 'sku' =>
'3-1-select',
137 'option_type_id' =>
null,
138 'title' =>
'Option 2',
140 'price_type' =>
'fixed',
141 'sku' =>
'3-2-select',
146 'previous_group' =>
'select',
147 'title' =>
'Test Radio',
153 'option_type_id' =>
null,
154 'title' =>
'Option 1',
156 'price_type' =>
'fixed',
157 'sku' =>
'4-1-radio',
160 'option_type_id' =>
null,
161 'title' =>
'Option 2',
163 'price_type' =>
'fixed',
164 'sku' =>
'4-2-radio',
169 'previous_group' =>
'select',
170 'title' =>
'File option',
175 'price_type' =>
'percent',
177 'file_extension' =>
'jpg, png, gif',
178 'image_size_x' => 10,
179 'image_size_y' => 20,
182 'title' =>
'area option',
187 'price_type' =>
'percent',
189 'max_characters' => 20,
$tierPriceExtensionAttributes2
$tierPriceExtensionAttributes1
$tpExtensionAttributesFactory
static getObjectManager()