- protected function getSimpleProductData($productData = [])
- {
- return [
- ProductInterface::SKU => isset($productData[ProductInterface::SKU])
- ? $productData[ProductInterface::SKU] : uniqid('sku-', true),
- ProductInterface::NAME => isset($productData[ProductInterface::NAME])
- ? $productData[ProductInterface::NAME] : uniqid('sku-', true),
- ProductInterface::VISIBILITY => 4,
- ProductInterface::TYPE_ID => 'simple',
- ProductInterface::PRICE => 3.62,
- ProductInterface::STATUS => 1,
- ProductInterface::TYPE_ID => 'simple',
- ProductInterface::ATTRIBUTE_SET_ID => 4,
- 'custom_attributes' => [
- ['attribute_code' => 'cost', 'value' => ''],
- ['attribute_code' => 'description', 'value' => 'Description'],
- ]
- ];
- }