199 lines
8.5 KiB
Smarty
199 lines
8.5 KiB
Smarty
{extends "ordering.tpl"}
|
|
|
|
{block "order-content"}
|
|
<div class="cart-summary-message">
|
|
<div class="alert alert-info">
|
|
{t}Překontrolujte si košík a odešlete objednávku.{/t}
|
|
</div>
|
|
</div>
|
|
{$deliveryType = $body->getDeliveryType()}
|
|
<div class="row">
|
|
<div class="col-md-4 col-lg-4">
|
|
{block "form-title-address"}<h3 class="form-title">{t}Kontaktní údaje{/t}</h3>{/block}
|
|
<ul class="summary-list">
|
|
<li><strong>{$body.invoice.name} {$body.invoice.surname}</strong></li>
|
|
{if $body.invoice.firm}
|
|
<li>{$body.invoice.firm}</li>
|
|
{/if}
|
|
<li>{$body.invoice.email}</li>
|
|
<li>{$body.invoice.phone}</li>
|
|
</ul>
|
|
</div>
|
|
{if $body.invoice.street || $body.invoice.city || $body.invoice.zip}
|
|
<div class="col-md-4 col-lg-4">
|
|
<h3 class="form-title"> </h3>
|
|
<ul class="summary-list">
|
|
<li>{$body.invoice.street}</li>
|
|
<li>{$body.invoice.city}</li>
|
|
<li>{$body.invoice.zip}</li>
|
|
<li>{$cfg.Order.Countries[$body.invoice.country]}</li>
|
|
</ul>
|
|
</div>
|
|
{/if}
|
|
|
|
{if $body.invoice.ico and $ctrl.active_country == "CZ" and getAdminUser()}
|
|
<div class="col-md-4 col-lg-4">
|
|
<h3 class="form-title"> </h3>
|
|
<ul class="summary-list">
|
|
<li>{$body.invoice.street}</li>
|
|
<li>{t}IČO{/t}: {$body.invoice.ico}</li>
|
|
{if $body.invoice.dic}
|
|
<li>{t}DIČ{/t}: {$body.invoice.dic}</li>
|
|
{/if}
|
|
</ul>
|
|
</div>
|
|
{/if}
|
|
</div>
|
|
<hr>
|
|
{if $deliveryType}
|
|
{block "form-title-delivery"}<h3 class="form-title">{t}Doprava a platba{/t}</h3>{/block}
|
|
<ul class="summary-list">
|
|
<li>{$deliveryType->delivery}</li>
|
|
{$delivery = $deliveryType->getDelivery()}
|
|
{if $delivery}
|
|
<li>{$delivery->printDeliveryInfo() nofilter}</li>
|
|
{/if}
|
|
{* na mezinarodnich nezobrazovat Class, na koza a EP to je odkopirovane *}
|
|
{block "payment-class"}
|
|
<li>{$deliveryType->payment}</li>
|
|
{/block}
|
|
</ul>
|
|
<hr>
|
|
{/if}
|
|
|
|
{if $body.note}
|
|
<h2>{t}Poznámka k objednávce{/t}</h2>
|
|
<p>{$body.note|escape:'htmlall'|nl2br nofilter}</p>
|
|
<hr>
|
|
{/if}
|
|
|
|
{if $body.register}
|
|
<p>{t}K objednávce Vám vytvoříme nový uživatelský účet{/t} <strong>{$body.invoice.email}</strong></p>
|
|
<hr>
|
|
{/if}
|
|
|
|
{if $body.products}
|
|
{split_partner_products products=$body.products assign=productGroups}
|
|
{* $productGroups contains array ['native' => $nativeProducts, 'partner' => $partnerProducts] *}
|
|
|
|
{block "cart-title-products"}<h2>{t}Zboží{/t}</h2>{/block}
|
|
|
|
{block "summary-products"}
|
|
{if count($productGroups.partner) && count($productGroups.native)}
|
|
<div class="alert alert-warning" role="warning">
|
|
<p>{t}POZOR - Vaše objednávka bude rozdělena do dvou balíků, které vám budou doručeny samostatně{/t}</p>
|
|
</div>
|
|
{/if}
|
|
<div class="table-cart summary">
|
|
{if count($productGroups.partner) && count($productGroups.native)}
|
|
<div class="w-text">
|
|
<p class="text-big">{t}1. balík obsahuje:{/t}</p>
|
|
</div>
|
|
{/if}
|
|
{foreach $productGroups as $groupName => $groupProducts}
|
|
{if $groupName == 'partner' && count($groupProducts) && count($productGroups.native)}
|
|
{* partnerske produkty jsou vzdy druhe v poradi => obsah nize se vykresli pouze pokud existuji oba typy produktu *}
|
|
<div class="w-text m-t-2">
|
|
<p class="text-big">{t}2. balík obsahuje:{/t}</p>
|
|
</div>
|
|
{/if}
|
|
{foreach $groupProducts as $product}
|
|
<div class="product">
|
|
<div class="product-inner display-table" data-cart="row">
|
|
<div class="col-xs-1 product-image">
|
|
<a title="{t}Zobrazit zboží{/t}"
|
|
href="{url s=product IDproduct=$product.id TITLE=$product.title}">
|
|
<img src="{get_photo photo=$product.image size=2}" alt="{$product.title}"
|
|
class="img-responsive">
|
|
</a>
|
|
</div>
|
|
|
|
<div class="col-xs-2 text-center hidden-md-down">
|
|
{$product.product->fetchParameters()|silent}
|
|
{$gender = $product.product.param.18}
|
|
{if $gender}
|
|
<div class="gender gender-cart">
|
|
{if $gender == 17}
|
|
<i class="fc icons_female" title="{t}Pro ženy{/t}"></i>
|
|
{elseif $gender == 16}
|
|
<i class="fc icons_male" title="{t}Pro muže{/t}"></i>
|
|
{elseif $gender == 22}
|
|
<i class="fc icons_unisex" title="{t}Unisex{/t}"></i>
|
|
{elseif $gender == 23}
|
|
<i class="fc icons_child-gender" title="{t}Pro děti{/t}"></i>
|
|
{/if}
|
|
</div>
|
|
{/if}
|
|
</div>
|
|
|
|
<div class="col-xs-5 product-title">
|
|
<a title="{t}Zobrazit zboží{/t}"
|
|
href="{url s=product IDproduct=$product.id TITLE=$product.title}">{$product.title}</a>
|
|
{*
|
|
product.availability rika, jestli jsou vsechny pozadovane kusy jedne polozky skladem.
|
|
product.availability == 0 a product.inStore == 1 znamena, ze je skladem jen cast pozadovanych kusu.
|
|
availability muze byt 0, 1 a 2
|
|
2 se pouzive pouze pokud je zpanuty modul sklad dodavatelu (napr KK).
|
|
|
|
Pozor, availability se muze upravit pomoci in_store_show_max
|
|
|
|
Pokud se neodecita ze skladu, availability je 1 pokud deliverytime je 0.
|
|
TODO: zkontrolat nastaveni neni skladem a pocet ks == 1
|
|
TODO: nazvy dostupnosti pouzivat z configu
|
|
*}
|
|
|
|
{if $product.availability == 0 and $product.inStore == 0}
|
|
<p class="delivery delivery-notinstore">{$product.deliveryTimeText}</p>
|
|
{elseif $product.availability == 0 and $product.inStore gt 0 }
|
|
<p class="delivery delivery-partly">{t}skladem pouze{/t} {$product.inStore} {t}ks{/t} </p>
|
|
{elseif $product.availability == 1 || $product.availability == 2}
|
|
<p class="delivery delivery-instore">{$product.deliveryTimeText}</p>
|
|
{/if}
|
|
</div>
|
|
<div class="col-xs-1 product-price-per-piece">
|
|
{$product.price.value_with_vat|format_price} / {t}ks{/t}
|
|
</div>
|
|
<div class="col-xs-1 product-pieces">
|
|
{$product.pieces} {t}ks{/t}
|
|
</div>
|
|
<div class="col-xs-2 product-price-total">
|
|
{$product.totalPrice.value_with_vat|format_price}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{/foreach}
|
|
{/foreach}
|
|
</div>
|
|
{/block}
|
|
|
|
{include "gift.tpl" summary=1}
|
|
<div class="clearfix"></div>
|
|
{else}
|
|
<div class="alert alert-info" role="alert">
|
|
{t}Žádný produkt{/t}
|
|
</div>
|
|
{/if}
|
|
|
|
{* box s cenou, zobrazuje dopravu *}
|
|
<div class="row">
|
|
<div class="col-xs-12 col-sm-6 pull-right">
|
|
{showPriceBox transport=1}
|
|
</div>
|
|
</div>
|
|
{block 'cart-buttons'}
|
|
{cartBtns submitName='SubmitOrder' valueNext='{t}Potvrdit objednávku{/t}'}
|
|
{/block}
|
|
{/block}
|
|
|
|
|
|
<script>
|
|
{block onready append}
|
|
{block "header-currency-confirm"}
|
|
$('.header-currency').on('click', 'a', function() {
|
|
return confirm(
|
|
'Změníte-li měnu, budete muset znovu vyplnit způsob dopravy a doručovací adresu. Přejete si pokračovat?');
|
|
});
|
|
{/block}
|
|
{/block}
|
|
</script>
|