<script type="text/template" <?>
{{#enabled}}
<div class="toolbar">
<div class="container-fluid">
<a href="javascript:void(0)" class="icon bh-showcart">
<i class="symbol shopping_cart"></i>
{{#cart.size}}
<span class="number">{{cart.size}}</span>
{{/cart.size}}
<a>
<div class="notice bh-notice" style="display:none">
<div class="box bh-box">
<div class="container-fluid">
<p>Il tuo prodotto è stato aggiunto al carrello</p>
<p class="price"><strong>{{cart.displayTotal}}€</strong></p>
<br/>
<a href="javascript:void(0)" class="bh-showcart btn black lds-route">Vai al carrello</a>
<a href="javascript:void(0)" class="btn orange bh-hidenotice">Continua gli acquisti</a>
</div>
</div>
</div>
</div>
</div>
{{/enabled}}
</script>
<script type="text/template" <?>
<div class="home">
<div class="header">
<div class="container-fluid">
<div class="row">
<div class="col-7">
<div class="info table">
<div class="cell">
<h1>{{store.name}}</h1>
<p>{{store.address.city}}</p>
</div>
</div>
</div>
<div class="col-5">
<div class="table">
<div class="cell">
{{#store.logo.url}}
<img src="{{store.logo.url}}" />
{{/store.logo.url}}
</div>
</div>
</div>
</div>
</div>
</div>
<div class="home container-fluid">
<div class="intro">
{{#store.texts.welcome}}
{{&store.texts.welcome}}
{{/store.texts.welcome}}
{{^store.texts.welcome}}
<p>
Scegli i prodotti che vuoi ordinare.<br/>
{{^callButton}}
Invia l'ordine con Whatsapp.
{{/callButton}}
</p>
{{/store.texts.welcome}}
</div>
<ul>
{{#categories}}
<li><a href="./category/{{slug}}" class="lds-route">{{name}}</a></li>
{{/categories}}
</ul>
<div class="intro"></div>
{{#callButton}}
<a class="btn orange" href="tel:{{store.phone}}">Chiamami</a>
{{/callButton}}
{{^callButton}}
<a class="btn orange bh-whatsappmessage" data-phone="{{store.phone}}">Mandami un messaggio</a>
{{/callButton}}
{{#store.pages}}
<a href="./page/{{slug}}" class="lds-route btn">{{name}}</a>
{{/store.pages}}
</div>
</div>
<div class="lds-component" id="footer" data-name="Footer"></div>
</script>
<script type="text/template" <?>
<div class="page">
<div class="header container-fluid">
<a href="../" class="lds-route"><i class="symbol arrow_left"></i></a>
<h1>{{category.name}}</h1>
</diV>
<div class="body">
<ul class="productlist">
{{#products}}
<li class="product" id="{{id}}">
<div class="container-fluid bh-item">
<h2>{{name}}</h2>
{{#image.url}}
<div class="image bh-image">
<img src="{{image.url}}"/>
<a class="button bh-share" href="{{url}}">
<i class="symbol share"></i>
</a>
</div>
{{/image.url}}
<p class="bh-movestart">
{{#description}}
{{description}}<br/>
{{/description}}
<br/>
{{displayPrice}}€ {{#quantityUnit}}/{{quantityUnit.name}}{{/quantityUnit}} {{^quantityUnit}}cad.{{/quantityUnit}}<br/>
</p>
{{#cartEnabled}}
<div class="row">
<div class="col-8">
<select class="bh-amount">
{{#quantityOptions}}
<option value="{{value}}">
{{value}}
{{#quantityUnit}}
{{^plural}}{{quantityUnit.name}}{{/plural}}
{{#plural}}{{quantityUnit.pluralName}}{{/plural}}
{{/quantityUnit}}
</option>
{{/quantityOptions}}
</select>
</div>
<div class="col-4">
<a href="javascript:void(0)" class="btn black small bh-add" data-id="{{id}}">Aggiungi</a>
</div>
</div>
{{/cartEnabled}}
</div>
</li>
{{/products}}
</ul>
</div>
</div>
<div class="productdetail bh-detail" style="display:none">
<div class="bg"></div>
<a class="close bh-close" href="javascript:void(0)"><i class="material-icons md-36">close</i></a>
<div class="content">
<div class="product bh-product"></div>
</div>
</div>
<div class="lds-component" id="footer" data-name="Footer"></div>
</script>
<script type="text/template" <?>
<div class="home">
<div class="header">
<div class="container-fluid">
<div class="row">
<div class="col-7">
<div class="info table">
<div class="cell">
<h1>{{store.name}}</h1>
<p>{{store.address.city}}</p>
</div>
</div>
</div>
<div class="col-5">
<div class="table">
<div class="cell">
{{#store.logo.url}}
<img src="{{store.logo.url}}" />
{{/store.logo.url}}
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container-fluid">
<div class="intro">
<p><strong>Ooops..</strong></p>
<p>
Pagina non trovata
</p>
</div>
<a href="/" class="lds-route btn">Torna alla home</a>
</div>
<div class="lds-component" id="footer" data-name="Footer"></div>
</div>
</script>
<script type="text/template" <?>
<div class="cart bh-panel">
<div class="page">
<div class="header container-fluid">
<a href="javascript:void(0)" class="bh-close"><i class="symbol close"></i></a>
<h1>Il tuo carrello</h1>
</div>
<div class="body bh-body">
{{^showchekout}}
{{#cart.elements.length}}
<ul class="productlist">
{{#cart.elements}}
<li class="product">
<div class="container-fluid bh-item">
<h2>{{product.name}}</h2>
<p>
{{product.displayPrice}}€ {{#product.quantityUnit}}/{{product.quantityUnit.name}}{{/product.quantityUnit}} {{^product.quantityUnit}}cad.{{/product.quantityUnit}}<br/>
</p>
<div class="row">
<div class="col-8">
<p>
Quantità: {{amount}}
{{#product.quantityUnit}}
{{#product.plural}}
{{product.quantityUnit.pluralName}}
{{/product.plural}}
{{^product.plural}}
{{product.quantityUnit.name}}
{{/product.plural}}
{{/product.quantityUnit}}
<br/>
<strong>Totale: {{displayTotal}}€</strong>
</p>
</div>
<div class="col-4">
<a href="javascript:void(0)" class="btn black small bh-remove" data-id="{{product.id}}">Rimuovi</a>
</div>
</a>
</div>
</li>
{{/cart.elements}}
</ul>
{{/cart.elements.length}}
<div class="box">
<div class="container-fluid">
{{#cart.elements.length}}
<p>Totale spesa</p>
<p class="price"><strong>{{cart.displayTotal}}€</strong></p>
{{#store.texts.cart.checkoutOrder}}
{{&store.texts.cart.checkoutOrder}}
{{/store.texts.cart.checkoutOrder}}
{{^store.texts.cart.checkoutOrder}}
{{#showShippingMethod}}
<p>
La consegna è gratuita<br/>
Il pagamento dovrà essere effettuato alla consegna
</p>
{{/showShippingMethod}}
{{/store.texts.cart.checkoutOrder}}
{{/cart.elements.length}}
{{^cart.elements.length}}
<p>Il tuo carrello è vuoto</p>
{{/cart.elements.length}}
<br/>
{{#cart.elements.length}}
<a href="javascript:void(0)" class="btn orange bh-showcheckout">Procedi con l'ordine</a>
{{/cart.elements.length}}
<a href="javascript:void(0)" class="btn bh-close">Torna ai prodotti</a>
</div>
</div>
{{/showchekout}}
{{#showchekout}}
<div class="container-fluid">
<br/>
{{#showShippingMethod}}
<p><h2>COME VUOI RICEVERE IL TUO ORDINE?</h2></p>
{{/showShippingMethod}}
<form class="bh-form">
<!-- modalità di consegna -->
<div style="{{^showShippingMethod}}display:none{{/showShippingMethod}}">
<div class="row">
<div class="col-6 bh-shippingmethod">
<div class="radiocont">
<input type="radio" name="shipping" value="ship"><strong class="label">Spediscimelo</strong>
</div>
</div>
<div class="col-6 bh-shippingmethod">
<div class="radiocont">
<input type="radio" name="shipping" value="pick" class="bh-shippingmethod"><strong class="label">Ritiro in negozio</strong>
</div>
</div>
</div>
</div>
<div class="form-field bh-field">
<input type="text" name="name" placeholder="Nome e cognome" value="{{userData.name}}" data-required="true">
<p class="message">Inserisci nome e cognome</p>
</div>
<div class="form-field bh-field">
<input type="text" name="address" placeholder="Indirizzo" value="{{userData.address}}" data-required="true">
<p class="message">Inserisci l'indirizzo di consegna</p>
</div>
{{#paymentMethods.length}}
<!-- togliere in caso di ritiro in negozio -->
<div class="form-field bh-field">
<select name="paymentMethod" data-required="true">
<option value="" class="default">Modalità di pagamento preferita</option>
{{#paymentMethods}}
<option value="{{name}}" {{#selected}}selected="selected"{{/selected}}>{{name}}</option>
{{/paymentMethods}}
</select>
<p class="message">Specifica la modalità di pagamento</p>
</div>
{{/paymentMethods.length}}
<!-- togliere in caso di ritiro in negozio -->
<div class="form-field bh-field">
<select name="shippingHours" data-required="true">
<option value="" class="default">Orario di consegna preferito</option>
<option value="Qualsiasi">Qualsiasi</option>
{{#store.openingHours}}
<option value="{{.}}">{{.}}</option>
{{/store.openingHours}}
</select>
<p class="message">Specifica l'orario di consegna</p>
</div>
<div class="form-field bh-field">
<textarea name="note" rows="4" placeholder="Note"></textarea>
</div>
</form>
<div class="box">
<p>Totale spesa</p>
<p class="price"><strong>{{cart.displayTotal}}€</strong></p>
{{#store.texts.cart.sendOrder}}
{{&store.texts.cart.sendOrder}}
{{/store.texts.cart.sendOrder}}
{{^store.texts.cart.sendOrder}}
{{#showShippingMethod}}
<p>
La consegna è gratuita<br/>
Il pagamento dovrà essere effettuato alla consegna
</p>
{{/showShippingMethod}}
{{/store.texts.cart.sendOrder}}
<p>
<strong>
Ricorda che per poter inviare l'ordine con whatsapp
devi aggiungere il nostro numero {{store.phone}}
ai tuoi contatti del telefono.<br/>
<a href="{{ vcardLink }}" class="txt-cta">Clicca qui</a> per aggiungerlo
</strong>
</p>
<br/>
<a href="javascript:void(0)" class="btn orange bh-commit">Invia l'ordine con whatsapp</a>
<a href="javascript:void(0)" class="btn bh-showresume">Indietro</a>
</div>
</div>
{{/showchekout}}
</div>
</div>
</div>
</script>
<script type="text/template" <?>
<div class="page">
<div class="header container-fluid">
<a href="../" class="lds-route"><i class="symbol arrow_left"></i></a>
<h1>{{page.name}}</h1>
</diV>
<div class="body container-fluid">
<br/>
{{&page.text}}
</div>
</div>
</script>
<script type="text/template" <?>
<div class="page">
<div class="header container-fluid">
<a href="../" class="lds-route"><i class="symbol arrow_left"></i></a>
<h1>Privacy</h1>
</diV>
<div class="body container-fluid">
<br/>
{{&text}}
</div>
</div>
</script>