Hi ,
I wonder how it could be possible to show essential characteristics in an email template?
I have implemented something like this for the productlisting with a subscriber which adds an extension like this:
$featureSet = $productEntity->getFeatureSet();
if ($featureSet != null){
$features = $featureSet->getFeatures();
foreach ($features as $feature){
$featureId = $feature['id'];
$featureName = $feature['name'];
if ($featureName == "manufacturerNumber") {
array_push($extensionData[$productId],array(
"featureName" => "Product Number",
"featureValue" => $productEntity->getProductNumber(),
));
}
foreach ($productProperties as $property ){
$propertyId = $property->getGroupId();
$propertyName = $property->getname();
if ($featureId == $propertyId){
array_push($extensionData[$productId],array(
"featureName" => $featureName,
"featureValue" => $propertyName,
));
}
}
}
}
Would it be for an email template something similar, and, if yes, which event to subcribe?
Thanks for your feedback…