";
$box_size = 1;
// fill product select box area
foreach ($erg->productList->selectGroupList as $group) {
// for all select boxes
$size = count(array($group->optionList));
$groupValue = $group->selectTranslations;
if ($groupValue == "") {
$groupValue = $group->selectName;
}
switch (gettype($groupValue)){
case 'array':
// translations texts consisting of several parts for formatting
$groupValue = utf8_decode(join(" ", $groupValue));
break;
case 'string':
// .. or only one
$groupValue = utf8_decode($groupValue);
break;
}
echo "
\n
".$groupValue." (" . $group->selectName . ")
\n";
echo "\n";
}
echo "
"; // product selection end
}
else {
if ($erg->catalogueList){
if (gettype($erg->catalogueList->catalogueList) != 'array'){
$erg->catalogueList->catalogueList = array($erg->catalogueList->catalogueList);
}
echo "Saved product Identifier is: