{* template settings *} {assign var=hideEmptyFields value=QUI::getRewrite()->getProject()->getConfig('templateCologne.settings.hideEmptyFields')}
{template_event name="quiqqer::products::product::begin" Product=$Product} {$jsonLd}
{$Gallery->create()}

# {$Product->getTitle()}

{$Product->getFieldValue("FIELD_PRODUCT_NO")}

{$Product->getDescription()}
{if $Site->getProject()->getConfig('templateCologne.settings.showRetailPrice')} {if $Product->hasOfferPrice()} {**}
{$PriceOldDisplay->create()}
{elseif $PriceRetailDisplay && $Price && $PriceRetail && $Price->getPrice() < $PriceRetail->getPrice()} {**}
{$PriceRetailDisplay->create()}
{/if} {/if}
{$PriceDisplay->create()}
{foreach $fields as $Field}
{$Field->getTitle()}:
{$Field->getValue()}
{/foreach} {assign var=ShippingTimeFrontendView value=QUI\TemplateCologne\Utils::getShippingTimeFrontendView($Product->getId())} {if $ShippingTimeFrontendView} {$ShippingTimeFrontendView->create()} {/if} {assign var=StockFrontendView value=QUI\TemplateCologne\Utils::getStockFrontendView($Product->getId())} {if $StockFrontendView} {$StockFrontendView->create()} {/if}
{if count($productAttributeGroups)}
{foreach $productAttributeGroups as $Field} {$Field->getView()->create()} {/foreach}
{/if} {if count($productAttributeList)}
{foreach $productAttributeList as $Field} {$Field->getView()->create()} {/foreach}
{/if}
{template_event name="quiqqer::products::product::buttons::begin" Product=$Product} {$buttonsHtml} {template_event name="quiqqer::products::product::buttons::end" Product=$Product}
{template_event name="quiqqer::products::product::buttons::after" Product=$Product} {assign var=ContentField value=$Product->getField(6)}

{if $ContentField}
- {$ContentField->getTitle()}
{/if} {if count($details)}
- {locale group="quiqqer/products" var="control.product.fields.details"}
{/if} {if $Files}
- {locale group="quiqqer/products" var="control.product.fields.files"}
{/if} {foreach $detailFields as $Field} {if $Field->getId() == QUI\ERP\Products\Handler\Fields::FIELD_EQUIPMENT && $Project->getConfig('templateCologne.settings.showEquipment') != 'asTab'} {continue} {/if} {if $Field->getId() == QUI\ERP\Products\Handler\Fields::FIELD_SIMILAR_PRODUCTS && $Project->getConfig('templateCologne.settings.showSimilarProducts') != 'asTab'} {continue} {/if} {* hide empty fields *} {assign var=fieldValue value=$Field->getValue()} {if $hideEmptyFields && empty($fieldValue)} {continue} {/if} {* hide empty fields *} {assign var=fieldValue value=$Field->getValue()} {if $hideEmptyFields && empty($fieldValue)} {continue} {/if}
- {$Field->getTitle()}
{/foreach}

{if $ContentField}
{$Product->getContent()}
{/if} {if count($details)}
{$Product->getDescription()}
{if count($details)}

{foreach $details as $Field} {if !empty($Field->getValue()) || is_numeric($Field->getValue())}
{$Field->getValueView()->create()}
{else}
{$Field->getTitle()} ---
{/if} {/foreach}

{/if}
{/if} {if $Files}
{$Files->create()}
{/if} {foreach $detailFields as $Field} {if $Field->getId() == QUI\ERP\Products\Handler\Fields::FIELD_EQUIPMENT && $Project->getConfig('templateCologne.settings.showEquipment') != 'asTab'} {continue} {/if} {if $Field->getId() == QUI\ERP\Products\Handler\Fields::FIELD_SIMILAR_PRODUCTS && $Project->getConfig('templateCologne.settings.showSimilarProducts') != 'asTab'} {continue} {/if} {* hide empty fields *} {assign var=fieldValue value=$Field->getValue()} {if $hideEmptyFields && empty($fieldValue)} {continue} {/if}
{control control="QUI\ERP\Products\Controls\Products\ProductFieldDetails" Field=$Field Product=$Product}
{/foreach}
{template_event name="quiqqer::products::product::middle" Product=$Product} {* Product Fields *} {foreach $productFields as $fieldData}

### {$fieldData.Field->getTitle()}

{assign var=t value=$fieldData.Slider->setAttribute('data-qui-options-usemobile', true)} {$fieldData.Slider->create()}
{/foreach} {template_event name="quiqqer::products::product::middle-2" Product=$Product} {* *} {if isset($VisitedProducts) && $Project->getConfig('templateCologne.settings.showVisitedProducts')}

# {locale group="quiqqer/products" var="brick.control.VisitedProducts.title"}

{assign var=t value=$VisitedProducts->getSlider()->setAttribute('data-qui-options-usemobile', true)} {$VisitedProducts->create()}
{/if} {* *} {if $Project->getConfig('templateCologne.settings.showSimilarProducts') == 'afterDesc' && $Product->getField(QUI\ERP\Products\Handler\Fields::FIELD_SIMILAR_PRODUCTS) && $Product->getField(QUI\ERP\Products\Handler\Fields::FIELD_SIMILAR_PRODUCTS)->getValue()}

# {locale group="quiqqer/template-cologne" var="shop.product.showSimilarProducts.title"}

{control control='QUI\ERP\Products\Controls\Products\ProductList' currentProductId=$Product->getId() productIds=$Product->getField(QUI\ERP\Products\Handler\Fields::FIELD_SIMILAR_PRODUCTS)->getValue() }
{/if} {* *} {if $Project->getConfig('templateCologne.settings.showEquipment') == 'afterDesc' && $Product->getField(QUI\ERP\Products\Handler\Fields::FIELD_EQUIPMENT) && $Product->getField(QUI\ERP\Products\Handler\Fields::FIELD_EQUIPMENT)->getValue()}

# {locale group="quiqqer/template-cologne" var="shop.product.showEquipment.title"}

{control control='QUI\ERP\Products\Controls\Products\ProductList' currentProductId=$Product->getId() productIds=$Product->getField(QUI\ERP\Products\Handler\Fields::FIELD_EQUIPMENT)->getValue() }
{/if} {template_event name="quiqqer::products::product::end" Product=$Product}