view['data']);
// Damit keine Zubehörprodukte ausgegeben werden
//$this->noReleatedProducts = true;
/** @var wpsg_product $oProduct */
$oProduct = $this->view['oProduct'];
if (($this->view['data']['product_key']??'') !== '') $oProduct->setProductKey($this->view['data']['product_key']);
// Nur das Hauptprodukt bekommt Brotkrumen und H1; ähnliche und eingebettete Produkte H2 (K67)
$bMainProduct = \wpsg\ProductPage::isMain(\wpsg\ProductPage::enter(), (bool)$this->noReleatedProducts);
// titleDisplayed: Die Seite zeigt den Titel. Für ähnliche Produkte gilt er nicht, sie stehen nach dem Hauptprodukt.
$bRelated = (!$bMainProduct && $this->noReleatedProducts && ($_REQUEST['action']??'') !== 'wpsg_productvariants_switch');
$bTitleByPage = ($this->titleDisplayed && !$bRelated && !($bMainProduct && \wpsg\ProductPage::templateWithoutTitle()));
$nTitleLevel = \wpsg\ProductPage::titleLevel($bMainProduct, (bool)$bTitleByPage);
$nSectionLevel = (($bMainProduct)?2:3);
// Hauptprodukt in der breiten Spalte wie die Kasse; renderProdukt() setzt alignwide am Formular (W7)
if ($bMainProduct) \wpsg\ProductPage::markWide();
?>
imagehandler->getAttachmentID($this->view['data']['product_key']);
/* Array mit allen AttachmentIDs der Produktbilder */
$arAttachmentIDsAll = $this->imagehandler->getAttachmentIDs($this->view['data']['product_id']);
?>