[{* article picture with zoom *}]
[{block name="details_productmain_zoom"}]
[{oxscript include="js/libs/photoswipe.min.js" priority=8}]
[{oxscript include="js/libs/photoswipe-ui-default.min.js" priority=8}]
[{oxscript add="\$( document ).ready( function() { Wave.initDetailsEvents(); });"}]
[{* Wird ausgeführt, wenn es sich um einen AJAX-Request handelt *}]
[{if $blWorkaroundInclude}]
[{oxscript add="$( document ).ready( function() { Wave.initEvents();});"}]
[{/if}]
[{if $oView->showZoomPics()}]
[{* ToDo: This logical part should be ported into a core function. *}]
[{if $oConfig->getConfigParam('sAltImageUrl') || $oConfig->getConfigParam('sSSLAltImageUrl')}]
[{assign var="aPictureInfo" value=$oPictureProduct->getMasterZoomPictureUrl(1)|@getimagesize}]
[{else}]
[{assign var="sPictureName" value=$oPictureProduct->oxarticles__oxpic1->value}]
[{assign var="aPictureInfo" value=$oConfig->getMasterPicturePath("product/1/`$sPictureName`")|@getimagesize}]
[{/if}]
[{else}]
[{/if}]
[{/block}]
[{block name="details_productmain_morepics"}]
[{include file="page/details/inc/morepics.tpl"}]
[{/block}]
[{include file="page/details/inc/morevideos.tpl"}]
[{block name="details_productmain_title"}]
[{$oDetailsProduct->oxarticles__oxtitle->value}] [{$oDetailsProduct->oxarticles__oxvarselect->value}]
[{/block}]
[{* article number *}]
[{block name="details_productmain_artnumber"}]
[{oxmultilang ident="ARTNUM" suffix="COLON"}] [{$oDetailsProduct->oxarticles__oxartnum->value}]
[{/block}]
[{assign var="stockElementValue" value="InStock"}]
[{if $oManufacturer->oxmanufacturers__oxtitle->value}]
[{/if}]
[{if $oDetailsProduct->oxarticles__oxean->value}]
[{/if}]
[{* stock status *}]
[{block name="details_productmain_stockstatus"}]
[{if !$oDetailsProduct->isMaterialStatusNoLongerProduced() && $oDetailsProduct->showStock() && $oDetailsProduct->showPricesAtList() && !$oDetailsProduct->isPriceZero()}]
[{if $oDetailsProduct->getStockStatus() == -1}]
[{assign var="stockElementValue" value="OutOfStock"}]
[{if $oDetailsProduct->oxarticles__oxnostocktext->value}]
[{$oDetailsProduct->oxarticles__oxnostocktext->value}]
[{elseif $oViewConf->getStockOffDefaultMessage()}]
[{oxmultilang ident="MESSAGE_NOT_ON_STOCK"}]
[{/if}]
[{if $oDetailsProduct->getDeliveryDate()}]
[{assign var="stockElementValue" value="OutOfStock"}]
[{oxmultilang ident="AVAILABLE_ON"}] [{$oDetailsProduct->getDeliveryDate()}]
[{/if}]
[{elseif $oDetailsProduct->getStockStatus() == 1}]
[{if $oConfig->getConfigParam('blArticleShowStockInListLabel')}]
[{oxmultilang ident="LIST_MESSAGE_ON_STOCK_WITH_COUNT" args=$oDetailsProduct->oxarticles__oxstock->value}]
[{else}]
[{oxmultilang ident="LIST_LOW_STOCK"}]
[{/if}]
[{elseif $oDetailsProduct->getStockStatus() == 0}]
[{if $oDetailsProduct->oxarticles__oxstocktext->value}]
[{$oDetailsProduct->oxarticles__oxstocktext->value}]
[{elseif $oViewConf->getStockOnDefaultMessage()}]
[{oxmultilang ident="READY_FOR_SHIPPING"}]
[{/if}]
[{/if}]
[{/if}]
[{/block}]
[{* ratings *}]
[{if $oView->ratingIsActive()}]
[{block name="details_productmain_ratings"}]
[{include file="widget/reviews/rating.tpl" itemid="anid=`$oDetailsProduct->oxarticles__oxnid->value`" sRateUrl=$oDetailsProduct->getLink()}]
[{/block}]
[{/if}]
[{* article main info block *}]
[{assign var="canonical_url" value=$oView->getCanonicalUrl()}]
[{* additional info *}]
[{oxhasrights ident="SHOWARTICLEPRICE"}]
[{assign var="oUnitPrice" value=$oDetailsProduct->getUnitPrice()}]
[{block name="details_productmain_priceperunit"}]
[{if $oUnitPrice}]
[{oxprice price=$oUnitPrice currency=$currency}]/[{$oDetailsProduct->getUnitName()}]
[{/if}]
[{/block}]
[{/oxhasrights}]
[{block name="details_productmain_vpe"}]
[{if $oDetailsProduct->oxarticles__oxvpe->value > 1}]
[{oxmultilang ident="DETAILS_VPE_MESSAGE_1"}] [{$oDetailsProduct->oxarticles__oxvpe->value}] [{oxmultilang ident="DETAILS_VPE_MESSAGE_2"}]
[{/if}]
[{/block}]
[{assign var="blCanBuy" value=true}]
[{* variants | md variants *}]
[{block name="details_productmain_variantselections"}]
[{if $aVariantSelections && $aVariantSelections.selections}]
[{oxscript include="js/widgets/oxajax.min.js" priority=10 }]
[{oxscript include="js/widgets/oxarticlevariant.min.js" priority=10 }]
[{oxscript add="$( '#variants' ).oxArticleVariant();"}]
[{assign var="blCanBuy" value=$aVariantSelections.blPerfectFit}]
[{if !$blHasActiveSelections}]
[{if !$blCanBuy && !$oDetailsProduct->isParentNotBuyable()}]
[{assign var="blCanBuy" value=true}]
[{/if}]
[{/if}]
[{assign var="blHasActiveSelections" value=false}]
[{foreach from=$aVariantSelections.selections item=oList key=iKey}]
[{if $oList->getActiveSelection()}]
[{assign var="blHasActiveSelections" value=true}]
[{/if}]
[{include file="widget/product/selectbox.tpl" oSelectionList=$oList iKey=$iKey blInDetails=true}]
[{/foreach}]
[{/if}]
[{/block}]
[{* selection lists *}]
[{block name="details_productmain_selectlists"}]
[{if $oViewConf->showSelectLists()}]
[{assign var="oSelections" value=$oDetailsProduct->getSelections()}]
[{if $oSelections}]
[{foreach from=$oSelections item=oList name=selections}]
[{include file="widget/product/selectbox.tpl" oSelectionList=$oList sFieldName="sel" iKey=$smarty.foreach.selections.index blHideDefault=true sSelType="seldrop"}]
[{/foreach}]
[{/if}]
[{/if}]
[{/block}]
[{* uvp / b2c Price if B2B *}]
[{if $oxcmp_user && $oxcmp_user->isB2BUser() && $oDetailsProduct->getUVPB2B()}]
[{oxmultilang ident="LABEL_UVP_B2B_B2C_PRICE"}] [{oxprice price=$oDetailsProduct->getUVPB2B() currency=$currency}]
[{/if}]
[{assign var="oPrice" value=$oDetailsProduct->getPrice()}]
[{block name="details_productmain_tprice"}]
[{oxhasrights ident="SHOWARTICLEPRICE"}]
[{if !$oDetailsProduct->isMaterialStatusNoLongerProduced() && (!$oxcmp_user || ($oxcmp_user && !$oxcmp_user->isB2BUser()))}]
[{if $oDetailsProduct->getTPrice()}][{$oDetailsProduct->getReducedPricePercent($oDetailsProduct->getTPrice(), $oDetailsProduct->getPrice())}][{/if}]% [{oxmultilang ident="DETAIL_REDUCEDPRICE_LABEL"}]
[{if $oDetailsProduct->getTPrice()}][{oxprice price=$oDetailsProduct->getTPrice() currency=$currency}][{/if}]
[{/if}]
[{/oxhasrights}]
[{/block}]
[{block name="details_productmain_watchlist"}][{/block}]
[{block name="details_productmain_price"}]
[{if !$oDetailsProduct->isMaterialStatusNoLongerProduced()}]
[{oxhasrights ident="SHOWARTICLEPRICE"}]
[{block name="details_productmain_price_value"}]
[{if $oDetailsProduct->getFPrice()}]
[{/if}]
[{if $oDetailsProduct->loadAmountPriceInfo()}]
[{include file="page/details/inc/priceinfo.tpl"}]
[{/if}]
[{/block}]
[{/oxhasrights}]
[{/if}]
[{/block}]
[{* pers params *}]
[{block name="details_productmain_persparams"}]
[{if $oView->isPersParam()}]
[{/if}]
[{/block}]
[{block name="details_productmain_tobasket"}]
[{assign var="blShowContactButton" value=false}]
[{assign var="blCanBuy" value=$oDetailsProduct->isSellable()}]
[{assign var="sReasonsForNotSellable" value=$oDetailsProduct->getReasonForNotSellable()}]
[{$sReasonsForNotSellable}]
[{oxhasrights ident="TOBASKET"}]
[{if !$blCanBuy and $oxcmp_user and $oxcmp_user->isB2b() and $oConfig->getConfigParam('blShowContactButtonOnArticleOutOfStock')}]
[{oxmultilang ident="CONTACT_BUTTON"}]
[{else}]
[{if !$blCanBuy and $oConfig->getConfigParam('blShowVendorSearchButtonOnArticleOutOfStock')}]
[{if $oDetailsProduct->isSparepart()}]
[{/block}]
[{if $oxcmp_user && $oxcmp_user->isB2b()}]
[{oxmultilang ident="LABEL_PLUS"}]
[{else}]
[{oxmultilang ident="LABEL_INCLUDING"}]
[{/if}]
[{$oConfig->getConfigParam('dDefaultVAT')}]% [{oxmultilang ident="LABEL_VAT"}],
[{if $oxcmp_user && $oxcmp_user->isB2BUser()}]
[{oxmultilang ident="DELIVERY_COST_LABEL_B2B"}]
[{elseif $oPrice->getPrice() > floatval($oConfig->getConfigParam('dAlkoMaxPriceForDelivery'))}]
[{oxmultilang ident="FREE_DELIVERY_LABEL"}]
[{else}]
[{oxmultilang ident="DELIVERY_COST_ADD_LABEL"}] [{oxmultilang ident="DELIVERY_COST_LABEL"}]
[{/if}]
[{oxhasrights ident="TOBASKET"}]
[{if $oDetailsProduct->isBuyable()}]
[{block name="details_productmain_deliverytime"}]
[{include file="page/details/inc/deliverytime.tpl"}]
[{/block}]
[{/if}]
[{/oxhasrights}]
[{block name="details_productmain_social"}]
[{/block}]
[{* usps *}]
[{if $oDetailsProduct->hasUsps()}]
[{foreach from=$oDetailsProduct->getUsps() item=sValue}]
- [{$sValue}]
[{/foreach}]
[{/if}]
[{* product actions *}]
[{assign var="iCountButtons" value=0}]
[{block name="details_productmain_productlinksselector"}]
[{block name="details_productmain_productlinks"}]
[{/block}]
[{/block}]
[{* short description / featured attributes *}]
[{block name="details_productmain_shortdesc"}]
[{assign var="aFeaturedAttributes" value=$oDetailsProduct->getFeaturedAttributes()}]
[{if $aFeaturedAttributes && count($aFeaturedAttributes) >0}]
[{foreach from=$aFeaturedAttributes item=oAttribute}]
[{$oAttribute->oxattribute__oxtitle->value}]:
[{$oAttribute->oxattribute__oxvalue->value}]
[{/foreach}]
[{/if}]
[{/block}]