/**
* @throws \Exception
*
* @return array
*/
private function convertListProductToNote(ListProduct
$product, array
$note) { $structConverter =
Shopware()->
Container()->
get(\Shopware\Components\Compatibility\LegacyStructConverter::
class);
/** @var array $promotion */
$promotion =
$structConverter->
convertListProductStruct($product);
$promotion['id'
] =
$note['id'
];
$promotion['datum_add'
] =
$note['datum'
];
$promotion['articlename'
] =
$promotion['articleName'
];
if ($product->
hasConfigurator() &&
$product->
getAdditional()) { $promotion['articlename'
] .= ' ' .
$product->
getAdditional();
} $promotion['linkDelete'
] =
$this->config->
get('sBASEFILE'
) . '?sViewport=note&sDelete=' .
$note['id'
];
return $promotion;
}