161 lines
6.4 KiB
Smarty
161 lines
6.4 KiB
Smarty
{extends 'account/orderView-inner.tpl'}
|
|
|
|
{block "orderview-top"}{/block}
|
|
|
|
{block "orderview-address"}{/block}
|
|
|
|
{block "order-note" append}
|
|
<div class="messages" data-reload="messages">
|
|
{if $body.failedDelivery}<div class="alert alert-danger" role="alert">{$body.failedDelivery nofilter}</div>{/if}
|
|
{if $body.failedProducts}
|
|
{$error = translate('error', 'order')}
|
|
{$error = $error.not_stocked_products}
|
|
{foreach $body.failedProducts as $product}
|
|
{$productName = "{$product['title']} {$product['variation_title']}"|trim}
|
|
{$message = str_replace('{PRODUCT}', $productName, $error)}
|
|
<div class="alert alert-danger outOfStock" role="alert">{$message nofilter}</div>
|
|
{/foreach}
|
|
{/if}
|
|
</div>
|
|
{/block}
|
|
|
|
{block "pieces"}
|
|
<div class="pieces">
|
|
{if $product.id_product and $body.editable}
|
|
{if $product.pieces >= 0}
|
|
{$step = $product.product.unit.step|default:1}
|
|
|
|
{ifmodule PRODUCTS__STEP}
|
|
{$data = $product.product->getData()}
|
|
{$step = $data.step|default:$step}
|
|
{/ifmodule}
|
|
|
|
<input type="number" name="pieces[{$product.id}]"
|
|
value="{$product.pieces|string_format:"%.{$product.product.unit.pieces_precision|default:0}f"}"
|
|
class="form-control" step="{$step}" min="{$step}" data-bv-excluded="true"
|
|
data-cart="pieces"
|
|
{if $module.PRODUCTS__UNITS_FLOAT}
|
|
data-precision="{$product.product.unit.pieces_precision|default:0}"
|
|
{/if}
|
|
>
|
|
<div class="buy_count">
|
|
<button type="button" class="fc plus" title="{t mnozstvi=$step}Přidat {mnozstvi} ks{/t}" data-cart="plus"
|
|
{* data-tracking-click='{get_gtm_data encode=true type='ecommerce' method='ClickAddToCart' data=['product' => $product.product, 'listType' => 'cart']}'*}
|
|
></button>
|
|
<button type="button" class="fc minus" title="{t mnozstvi=$step}Odebrat {mnozstvi} ks{/t}" data-cart="minus"
|
|
{* data-tracking-click='{get_gtm_data encode=true type='ecommerce' method='ClickRemoveFromCart' data=['product' => $product.product]}'*}
|
|
></button>
|
|
{if $module.PRODUCTS__UNITS_FLOAT}
|
|
<p class="ordering-product-units">{$product.product.unit.short_name|lower}</p>
|
|
{/if}
|
|
</div>
|
|
{else}
|
|
<input type="hidden" name="pieces[{$product.id}]" value="{$product.pieces}">
|
|
{$product.pieces} {t}Ks{/t}
|
|
{/if}
|
|
{elseif $product.id_product}
|
|
{$product.pieces} {t}ks{/t} {* todo unit *}
|
|
{/if}
|
|
</div>
|
|
{/block}
|
|
|
|
{block "orderview-price" append}
|
|
{if $product.id_product and $body.editable and $product.pieces > 0}
|
|
<a href="{url s=orderView acn=deleteItem IDo=$body.order.id IDi=$product.id edit=true}" class="delete-product"
|
|
{* data-tracking-click='{get_gtm_data encode=true type='ecommerce' method='ClickRemoveFromCart' data=['product' => $product.product, 'quantity' => $product.pieces]}'*}
|
|
title="{t}Odebrat produkt z košíku{/t}" data-cart="delete">
|
|
<span class="fc"></span>
|
|
</a>
|
|
{/if}
|
|
{/block}
|
|
|
|
{block "order-bonus-program" append}
|
|
{********* DÁREK, SLEVY **********}
|
|
<div data-reload="discount">
|
|
{foreach $body.order->getPurchaseState()->getDiscountHandlers() as $handler}
|
|
{$handler->render() nofilter}
|
|
{/foreach}
|
|
</div>
|
|
|
|
<div data-reload="price">
|
|
{/block}
|
|
|
|
{block "order-manuals" prepend}
|
|
</div>
|
|
{/block}
|
|
|
|
{block "orderview-history" prepend}
|
|
<div class="orderview-row">
|
|
<div class="column">
|
|
<p class="title-default">{t}Kontaktní údaje{/t}</p>
|
|
<ul>
|
|
<li><strong>{$body.order.invoice_name} {$body.order.invoice_surname}</strong></li>
|
|
<li>{$body.order.invoice_email}</li>
|
|
<li>{$body.order.invoice_phone}</li>
|
|
</ul>
|
|
</div>
|
|
|
|
{if $body.order.invoice_street}
|
|
<div class="column">
|
|
<p class="title-default">{t}Fakturační adresa{/t}</p>
|
|
<ul>
|
|
<li>{$body.order.invoice_street}</li>
|
|
|
|
{if $body.order.invoice_custom_address}
|
|
<li>{$body.order.invoice_custom_address}</li>
|
|
{/if}
|
|
<li>{$body.order.invoice_zip} {$body.order.invoice_city}</li>
|
|
|
|
{if $body.order.invoice_state}
|
|
<li>{$body.order.invoice_state}</li>
|
|
{/if}
|
|
{if $allCountries[$body.order.invoice_country]}
|
|
<li>{$allCountries[$body.order.invoice_country]->getName()}</li>
|
|
{/if}
|
|
</ul>
|
|
</div>
|
|
{/if}
|
|
|
|
{if $body.order.delivery_name || $body.order.delivery_surname || $body.order.delivery_street}
|
|
<div class="column">
|
|
<p class="title-default">{t}Dodací adresa{/t}</p>
|
|
<ul>
|
|
<li>{$body.order.delivery_name} {$body.order.delivery_surname}</li>
|
|
{if $body.order.delivery_firm and $body.order.delivery_firm != $body.order.delivery_name|cat:" "|cat:$body.order.delivery_surname}
|
|
<li>{$body.order.delivery_firm}</li>
|
|
{/if}
|
|
<li>{$body.order.delivery_street}</li>
|
|
{if $body.order.delivery_custom_address}
|
|
<li>{$body.order.delivery_custom_address}</li>
|
|
{/if}
|
|
<li>{$body.order.delivery_zip} {$body.order.delivery_city}</li>
|
|
{if $body.order.delivery_state}
|
|
<li>{$body.order.delivery_state}</li>
|
|
{/if}
|
|
{if $allCountries[$body.order.delivery_country]}
|
|
<li>{$allCountries[$body.order.delivery_country]->getName()}</li>
|
|
{/if}
|
|
{if $body.order.delivery_phone}
|
|
<li>{$body.order.delivery_phone}</li>
|
|
{/if}
|
|
</ul>
|
|
</div>
|
|
{/if}
|
|
|
|
{if $body.order.invoice_firm}
|
|
<div class="column">
|
|
<p class="title-default">{t}Firemní údaje{/t}</p>
|
|
<ul>
|
|
<li>{$body.order.invoice_firm}</li>
|
|
{if $body.order.invoice_ico}
|
|
<li>{t}IČO{/t}: {$body.order.invoice_ico}</li>
|
|
{/if}
|
|
{if $body.order.invoice_dic}
|
|
<li>{t}DIČ{/t}: {$body.order.invoice_dic}</li>
|
|
{/if}
|
|
</ul>
|
|
</div>
|
|
{/if}
|
|
</div>
|
|
{/block}
|