Il template order.html serve a visualizzare il dettaglio all'interno di un ordine.
{% set idOrder = request.path.3 %} {% set order = getOrderById(idOrder) %}
Dettagli
Id ordine, data e stato.
<strong>#Ordine:</strong> {{order.orderID}} <strong>Data:</strong> {{ order.orderDate.sec | date('d/m/Y')}} <strong>Stato</strong> {{ lang(orderStatusList[order.status]) }} <strong>Metodo di pagamento:</strong> {{getOrderPaymentMethod(order.cart.paymentProfile)}} <strong>Metodo di spedizione:</strong> {{order.cart.shippingProfile}}
Mostra l'iban se l'utente ha scelto il pagamento tramite bonifico
{% if order.cart.paymentProfile == 'transfer' %} <strong>{{lang('order.checkouted.transfer')}}:</strong> {{ group.iban }} {% endif %}
Messaggio inviato dall'utente al negoziante al momento del checkout
{% if order.message != ''%} {{order.message}} {% endif %}
Mostra il pulsante "paga adesso" per permettere all'utente di riprovare il pagamento.
{% if order.cart.paymentProfile != 'transfer' and order.cart.paymentProfile != 'mark' and order.status == 0 %} <span class="pay-now-order" data-id="{{order.orderID}}">{{lang('order.pay.now')}}</span> {% endif %}
Link al dettaglio
<a href="{{request.script_name}}/order/{{ order.orderID }}" class="btn btn-default"> {{lang('order.show.details')}} </a>
Pulsanti per comunicazioni
<a data-toggle="modal" href="#sendMessageModal"> {{lang('store.contact.us')}} </a> {% if order.status == 5 or order.status == 8 %} <a href="/messages">{{lang('store.view.conversation')}}</a> {% endif %}
Dettaglio prodotti
{% for k,item in order.cart.items %} {% set exp = explode('#|#', k) %} {% set itemUID = exp.0 %} {% set product = getCompleteItem(itemUID, false, true, false) %} {% if product.title == ''%} {% set productTitle = item.title %} {% else %} {% set productTitle = product.title %} {% endif %} <a href="{{request.script_name}}/product/{{itemUID}}/{{product.slug}}"> <span class="order-item-preview"> <span class="wrap_img"><img src="{{ productimage(itemUID) }}" ></span> <p>{{productTitle}}</p> </span> </a> {% endfor %}
Dettaglio indirizzo di spedizione
{{order.delivery.fullname}} {{order.delivery.addr1}} {{order.delivery.city}}, {{order.delivery.zip}} {% if order.delivery.state != ''%} {{ getState(order.delivery.state) }} {% endif %} {% if order.delivery.nation != ''%} {{ getCountry(order.delivery.nation) }} {% endif %} {{order.delivery.vat}} {{order.delivery.phone}} {{order.delivery.email}}
Dettaglio indirizzo di fatturazione
{{order.billing.fullname}} {{order.billing.addr1}} {{order.billing.city}}, {{order.billing.zip}} {% if order.billing.state != ''%} {{ getState(order.billing.state) }} {% endif %} {% if order.billing.nation != ''%} {{ getCountry(order.billing.nation) }}<br> {% endif %} {{order.billing.vat}}<br> {{order.billing.phone}}<br> {{order.billing.email}}<br>
Riepilogo costi
{% set totalItems = 0 %} {% for k,item in order.cart.items %} {% set totalItem = item.price*item.count %} {% set totalItems = totalItems + totalItem %} {%endfor%} Totale prodotti; Euro {{ totalItems | nfx }} Costo spedizioni: Euro {{order.cart.shippingAmount | nfx}} {% if order.cart.paymentAmount > 0 %} Costo metodo di pagamento {{getOrderPaymentMethod(order.cart.paymentProfile)}} Euro {{order.cart.paymentAmount | nfx}} {% endif %} {% if order.cart.saleAmount > 0 %} Codice sconto ({{order.cart.saleCode}}) Euro -{{order.cart.saleAmount | nfx}} {% endif %} Total pagato: Euro {{order.total | nfx}}
Commenti