7 use Magento\Catalog\Api\Data\ProductTierPriceExtensionFactory;
8 use Magento\Catalog\Api\Data\ProductExtensionInterfaceFactory;
36 'customer_group_id' => \
Magento\Customer\Model\Group::CUST_GROUP_ALL,
46 'customer_group_id' => \
Magento\Customer\Model\Group::CUST_GROUP_ALL,
56 'customer_group_id' => \
Magento\Customer\Model\Group::NOT_LOGGED_IN_ID,
65 ->setPercentageValue(50);
70 'customer_group_id' => \
Magento\Customer\Model\Group::NOT_LOGGED_IN_ID,
81 ->setAttributeSetId(4)
83 ->setName(
'Simple Product')
87 ->setShortDescription(
"Short description")
90 ->setDescription(
'Description with <b>html tag</b>')
92 ->setMetaTitle(
'meta title')
93 ->setMetaKeyword(
'meta keyword')
94 ->setMetaDescription(
'meta description')
95 ->setVisibility(\
Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH)
96 ->setStatus(\
Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED)
99 'use_config_manage_stock' => 1,
101 'is_qty_decimal' => 0,
104 )->setCanSaveCustomOptions(
true)
105 ->setHasOptions(
true);
109 'previous_group' =>
'text',
110 'title' =>
'Test Field',
115 'price_type' =>
'fixed',
117 'max_characters' => 100,
120 'previous_group' =>
'date',
121 'title' =>
'Test Date and Time',
122 'type' =>
'date_time',
126 'price_type' =>
'fixed',
130 'previous_group' =>
'select',
131 'title' =>
'Test Select',
132 'type' =>
'drop_down',
137 'option_type_id' =>
null,
138 'title' =>
'Option 1',
140 'price_type' =>
'fixed',
141 'sku' =>
'3-1-select',
144 'option_type_id' =>
null,
145 'title' =>
'Option 2',
147 'price_type' =>
'fixed',
148 'sku' =>
'3-2-select',
153 'previous_group' =>
'select',
154 'title' =>
'Test Radio',
160 'option_type_id' =>
null,
161 'title' =>
'Option 1',
163 'price_type' =>
'fixed',
164 'sku' =>
'4-1-radio',
167 'option_type_id' =>
null,
168 'title' =>
'Option 2',
170 'price_type' =>
'fixed',
171 'sku' =>
'4-2-radio',
$tpExtensionAttributesFactory
$tierPriceExtensionAttributes1
$tierPriceExtensionAttributes2
$productExtensionAttributesFactory
$productExtensionAttributesWebsiteIds
static getObjectManager()