{# attributes #}
{% if oView.getAttributes() %}
{% for oAttr in oView.getAttributes() %}
{{ oAttr.title }}:
{{ oAttr.value }}
{% endfor %}
{% endif %}
{# properties #}
{% if oDetailsProduct.oxarticles__oxvarname.value %}
{% set aPropertyTitles = oDetailsProduct.oxarticles__oxvarname.value|split('|') %}
{% set aPropertyValues = oDetailsProduct.oxarticles__oxvarselect.value|split('|') %}
{% for sKey, sPropertyTitle in aPropertyTitles %}
{{ sPropertyTitle|trim }}:
{{ aPropertyValues[sKey]|trim }}
{% endfor %}
{% endif %}
{# unit price #} {# todo create theme option to enable/disable this block #}
{% if oDetailsProduct.getUnitPrice() and blShowPriceInDetails %}
{% set oUnitPrice = oDetailsProduct.getUnitPrice() %}
{% block details_buybox_priceperunit %}
{{ format_price(oUnitPrice, { currency: oCurrency }) }}/{{ oDetailsProduct.getUnitName(true) }}
{% endblock %}
{% endif %}
{# list price #} {# todo create theme option to enable/disable this block #}
{% hasrights { ident: "SHOWARTICLEPRICE" } %}
{% if oDetailsProduct.getPrice() and not oDetailsProduct.loadAmountPriceInfo() and blShowPriceInDetails %}
{% set oCurrency = oView.getActCurrency() %}
{% block details_buybox_fprice %}
1 {{ oScalePrice.oxprice2article__oxamount.value }} {{ translate({ ident: "PCS" }) }}
{{ format_price(oDetailsProduct.getPrice(), { currency: oCurrency }) }}{% if oDetailsProduct.getUnitName() %} / {{ oDetailsProduct.getUnitName(true) }}{% endif %}
{% endblock %}
{% endif %}
{% endhasrights %}
{# weight #} {# todo create theme option to enable/disable this block #}
{% if oDetailsProduct.getWeight() %}
{% block details_buybox_weight %}
{{ translate({ ident: "WEIGHT", suffix: "COLON" }) }}
{{ oDetailsProduct.getWeight() }} {{ translate({ ident: "KG" }) }}
{% endblock %}
{% endif %}
{# vpe #} {# todo create theme option to enable/disable this block #}
{% if oDetailsProduct.oxarticles__oxvpe.value > 1 %}
{% block details_buybox_vpe %}
{{ translate({ ident: "DETAILS_VPE_MESSAGE_1" }) }} {{ oDetailsProduct.oxarticles__oxvpe.value }} {{ translate({ ident: "DETAILS_VPE_MESSAGE_2" }) }}
{% endblock %}
{% endif %}
{# pers params #}
{# todo {% if oView.isPersParam() %}#}
{# {% block details_buybox_persparams %}#}
{#
#}
{# {{ translate({ ident: "LABEL" }) }} #}
{# #}
{#
#}
{# {% endblock %}#}
{# {% endif %} #}
{# scale price #} {# todo create theme option to enable/disable this block #}
{% hasrights { ident: "SHOWARTICLEPRICE" } %}
{% if oDetailsProduct.loadAmountPriceInfo() and blShowPriceInDetails %}
{% set oCurrency = oView.getActCurrency() %}
{% block details_buybox_scale_prices %}
{% for oScalePrice in oDetailsProduct.loadAmountPriceInfo() %}
{% if not loop.first %}{{ translate({ ident: "FROM" }) }}{% endif %} {{ oScalePrice.oxprice2article__oxamount.value }} {{ translate({ ident: "PCS" }) }}
{% if oScalePrice.oxprice2article__oxaddperc.value %}
{{ oScalePrice.oxprice2article__oxaddperc.value }}% {{ translate({ ident: "DISCOUNT" }) }}
{% else %}
{% if oViewConf.isFunctionalityEnabled("blShowNetPrice") %}
{{ oScalePrice.fnetprice }} {{ oCurrency.sign }} {# attention! fnetprice is currency formatted string value! do not use oxprice #}
{% else %}
{{ oScalePrice.fbrutprice }} {{ oCurrency.sign }} {# attention! fnetprice is currency formatted string value! do not use oxprice #}
{% endif %}
{% if oDetailsProduct.getUnitName() %} / {{ oDetailsProduct.getUnitName(true) }}{% endif %}
{% endif %}
{% endfor %}
{% endblock %}
{% endif %}
{% endhasrights %}
{# article amount infos #}
{% block details_buybox_infos %}
{% if oDetailsProduct.getUnitQuantity() %}
{{ translate({ ident: "C4S_RELEASE_UNIT", suffix: "COLON" }) }}
{{ oDetailsProduct.getUnitQuantity() }} {% if oDetailsProduct.getUnitName() %}{{ oDetailsProduct.getUnitName(true) }}{% endif %}
{% endif %}
{% if oDetailsProduct.getWeight() %}
{{ translate({ ident: "C4S_WEIGHT_PER_UNIT_QUANTITY", suffix: "COLON" }) }}
{{ oDetailsProduct.getWeight() }} {{ translate({ ident: "KG" }) }}
{% endif %}
{% if oxcmp_user %}
{% set oDetailUnitPrice = oDetailsProduct.getUnitPrice() %}
{{ translate({ ident: "C4S_PRICE_PER_UNIT_QUANTITY", suffix: "COLON" }) }}
{{ format_price(oDetailsProduct.getUnitPrice(), { currency: oCurrency }) }}
{% endif %}
{% if oDetailsProduct.oxarticles__c4sminamount.value %}
{{ translate({ ident: "C4S_MINIMUM_ORDER_AMOUNT", suffix: "COLON" }) }}
{{ oDetailsProduct.oxarticles__c4sminamount.value }} {% if oDetailsProduct.getUnitName() %}{{ oDetailsProduct.getUnitName(true) }}{% endif %}
{% endif %}
{% if oDetailsProduct.oxarticles__c4smaxamount.value %}
{{ translate({ ident: "C4S_MAXIMUM_ORDER_AMOUNT", suffix: "COLON" }) }}
{{ oDetailsProduct.oxarticles__c4smaxamount.value }} {% if oDetailsProduct.getUnitName() %}{{ oDetailsProduct.getUnitName(true) }}{% endif %}
{% endif %}
{% endblock %}
{# price #}
{% if blShowPriceInDetails %}
{% set oPrice = oDetailsProduct.getPrice() %}
{% set oTPrice = false %}
{% block details_buybox_pricebox %}
{% block details_buybox_tprice %}
{% hasrights { ident: "SHOWARTICLEPRICE" } %}
{% set oTPrice = oDetailsProduct.getTPrice() %}
{% if oTPrice and oTPrice.getBruttoPrice() > oPrice.getBruttoPrice() %}
{{ oDetailsProduct.getFTPrice() }} {{ oCurrency.sign }}
{% endif %}
{% endhasrights %}
{% endblock %}
{% block details_buybox_price %}
{% hasrights { ident: "SHOWARTICLEPRICE" } %}
{% if oDetailsProduct.getFPrice() %}
{% set sFrom = "" %}
{% set sFPrice = oDetailsProduct.getFPrice() %}
{% if oDetailsProduct.isParentNotBuyable() %}
{% set sFPrice = oDetailsProduct.getFVarMinPrice() %}
{% if oDetailsProduct.isRangePrice() %}
{% set sFrom = "PRICE_FROM"|translate %}
{% endif %}
{% endif %}
{{ sFrom }}
{{ translate({ ident: "YOUR_PRICE", suffix: "COLON" }) }}
{{ sFPrice }}
{{ oCurrency.sign }}
{% if oDetailsProduct.loadAmountPriceInfo() and blShowPriceInDetails %}
{% ifcontent ident "c4s_detail_price_info" set oCont %}
{% endifcontent %}
{% endif %}
{% if oView.isVatIncluded() %}
*
{% endif %}
{{ sFPrice }} {{ oCurrency.sign }}
{% endif %}
{% endhasrights %}
{% endblock %}
{% endblock %}
{% endif %}