$arrayProduct =
$this->legacyStructConverter->
convertListProductStruct($product);
if ($product->
hasConfigurator()) { $variantPrice =
$product->
getVariantPrice();
$arrayProduct['referenceprice'
] =
$variantPrice->
getCalculatedReferencePrice();
} if (isset($covers[$product->
getNumber()])) { $arrayProduct['image'
] =
$this->legacyStructConverter->
convertMediaStruct($covers[$product->
getNumber()]);
} if ($product->
hasProperties() &&
isset($propertySets[$product->
getNumber()])) { $propertySet =
$propertySets[$product->
getNumber()];
$arrayProduct['sProperties'
] =
$this->legacyStructConverter->
convertPropertySetStruct($propertySet);
$arrayProduct['filtergroupID'
] =
$propertySet->
getId();
$arrayProduct['properties'
] =
array_map(function D
$property) { return $property['name'
] . ': ' .
$property['value'
];
},
$arrayProduct['sProperties'
]);
$arrayProduct['properties'
] =
implode(', ',
$arrayProduct['properties'
]);
} $details[$product->
getNumber()] =
$arrayProduct;
}