{* Multiprice Product - Admin preview *}

<div class="content-view-full">
    <div class="class-product">

    <h1>{$node.name|wash()}</h1>

    {* Image. *}
    {section show=$node.data_map.image.content}
        <div class="attribute-image">
            {attribute_view_gui alignment=right image_class=medium attribute=$node.data_map.image.content.data_map.image}
        </div>
    {/section}

        {* Short description. *}
        <div class="attribute-short">
           {attribute_view_gui attribute=$node.data_map.short_description}
        </div>

        {* Description. *}
        <div class="attribute-long">
           {attribute_view_gui attribute=$node.data_map.description}
        </div>

        {* Price. *}
        <div class="attribute-price">
          <p>{attribute_view_gui attribute=$node.data_map.price}</p>
        </div>

        {* Category. *}
        {def $product_category_attribute=ezini( 'VATSettings', 'ProductCategoryAttribute', 'shop.ini' )}
        {if and( $product_category_attribute, is_set( $node.data_map.$product_category_attribute ) )}
        <div class="attribute-long">
          <p>Category:&nbsp;{attribute_view_gui attribute=$node.data_map.$product_category_attribute}</p>
        </div>
        {/if}
        {undef $product_category_attribute}

        {* PDF. *}
        <div class="attribute-pdf">
          <p><a href={concat( '/content/pdf/', $node.node_id )|ezurl}>{'Download this product sheet as PDF'|i18n( 'design/admin/preview/product' )}</a></p>
        </div>

       {* Related products. *}
       {let related_purchase=fetch( shop, related_purchase, hash( contentobject_id, $node.contentobject_id, limit, 10 ) )}
       {section show=$related_purchase}
            <h2>{'People who bought this also bought'|i18n( 'design/admin/preview/product' )}</h2>

            <div class="relatedorders">
            {section var=product loop=$related_purchase}
                {content_view_gui view=text_linked content_object=$product.item}
            {/section}
            </div>
       {/section}
       {/let}

   </div>
</div>
