{extends file="layout.tpl"} {* Security *} {block name="no-return-functions" prepend} {check_auth role="CUSTOMER" login_tpl="login"} {check_cart_not_empty} {check_valid_delivery} {/block} {* Body Class *} {block name="body-class"}page-order-invoice{/block} {* Breadcrumb *} {block name='no-return-functions' append} {$breadcrumbs = [ ['title' => {intl l="Cart"}, 'url'=>{url path="/cart"}], ['title' => {intl l="My order"}, 'url'=>{url path="/order/invoice"}] ]} {/block} {block name="main-content"}

# {intl l="Check my order"}

{include file="misc/checkout-progress.tpl" step="invoice"} {hook name="order-invoice.top"} {form name="thelia.order.coupon"} {form_hidden_fields} {form_field field='success_url'} {/form_field} {form_field field='error_url'} {/form_field} {if $form_error}
{$form_error_message}
{/if}

| {intl l="Product Name"} {intl l="Name"} | {intl l="Unit Price"} {intl l="Price"} | {intl l="Unit Taxed Price"} {intl l="Taxed Price"} | {intl l="Quantity"} {intl l="Qty"} | {intl l="Total"} {intl l="Total"}
--- | --- | --- | --- | --- | ---
{loop type="amp_cart_id" name="cartidloop"} {assign "card_id" $CART_ID} {/loop} {assign "postageAmountTotalEstimation" 0} {loop type="ampseller" name="sellers"} {ifloop rel="amp_cartloop"}
#### {$TITLE}
{assign "weightTotalSeller" 0} {assign "postageAmountEstimation" 0} {loop type="amp_cart_seller_item" amp_seller_id=$ID cart_id=$card_id name="amp_cartloop"}
{assign var="product_image_url" value=null} {ifloop rel="amp-pse-first-image"} {loop type="product-sale-elements-image" name="amp-pse-first-image" product_sale_elements_id=$PRODUCT_SALE_ELEMENTS_ID limit="1"} {loop type="image" name="product-image" id=$PRODUCT_IMAGE_ID product=$PRODUCT_ID limit="1" width="118" height="85" force_return="true"} {assign var="product_image_url" value=$IMAGE_URL} {/loop} {/loop} {/ifloop} {elseloop rel="amp-pse-first-image"} {loop type="image" name="amp-product-image" product=$PRODUCT_ID limit="1" width="118" height="85" force_return="true"} {assign var="product_image_url" value=$IMAGE_URL} {/loop} {/elseloop} {if $product_image_url} {else} {/if} | ### {$TITLE} {intl l="Available"} : {if $STOCK > 0} {intl l="In Stock"} {else} {intl l="Out of Stock"} {/if} {loop type="product_sale_elements" name="amp_ref" id=$PRODUCT_SALE_ELEMENTS_ID} {intl l="No."} {$REF} {/loop} {loop type="attribute_combination" name="amp_product_options" product_sale_elements="$PRODUCT_SALE_ELEMENTS_ID"} {$ATTRIBUTE_TITLE} {$ATTRIBUTE_AVAILABILITY_TITLE} {/loop} | {if $IS_PROMO == 1} {format_money number=$PROMO_PRICE} {else} {format_money number=$PRICE} {/if} | {if $IS_PROMO == 1} {assign "real_price" $PROMO_TAXED_PRICE} {assign "real_total_price" $TOTAL_PROMO_TAXED_PRICE} {format_money number=$PROMO_TAXED_PRICE} {intl l="instead of"} {format_money number=$TAXED_PRICE} {else} {assign "real_price" $TAXED_PRICE} {assign "real_total_price" $TOTAL_TAXED_PRICE} {format_money number=$TAXED_PRICE} {/if} | {$QUANTITY} | {format_money number=$real_total_price}
{assign "quantity" $QUANTITY} {loop type="product_sale_elements" id=$PRODUCT_SALE_ELEMENTS_ID name="productweight"} {assign "weightItems" $WEIGHT*$quantity} {/loop} {assign "weightTotalSeller" $weightTotalSeller+$weightItems} {/loop} {if $weightTotalSeller > 0} {loop type="amp_cart_weight_postage_estimation" weight="$weightTotalSeller" name="amp_cartitempostageestimation"} {assign "postageAmountEstimation" $POSTAGE_AMOUNT} {/loop} {assign "postageAmountTotalEstimation" $postageAmountTotalEstimation+$postageAmountEstimation} {/if}
{intl l="Estimated shipping seller"} | {$postageAmountEstimation}
{/ifloop} {/loop}

{$discount={order attr="discount"}} {if $discount}
{intl l="Discount"} | {format_money number=$discount}
{/if}
{intl l="You may have a coupon ?"} | {form_field field='success_url'} {/form_field} {form_field field='coupon-code'} {intl l='Code :'} {if $error}{$message}{/if} {/form_field}
{if {cart attr="is_virtual"} != 1}
{intl l="Shipping Tax"} | {format_money number={order attr="postage"}}
{/if}
{intl l="Total excl. taxes"} | {format_money number={{cart attr="total_price"} + {order attr="postage"} - {order attr="postage_tax"}}}
{intl l="Total incl. taxes"} | {format_money number={{cart attr="total_taxed_price"} + {order attr="postage"}}}

{hook name="order-invoice.coupon-form"} {/form} {form name="thelia.order.payment"} {assign var="isPost" value=$smarty.post|count} {form_hidden_fields} {if $form_error}
{$form_error_message}
{/if}
{ifhook rel="order-invoice.delivery-address"} {* delivery module can customize the delivery address *} {hook name="order-invoice.delivery-address" module={order attr="delivery_module"}} {/ifhook} {elsehook rel="order-invoice.delivery-address"}
{loop type="address" name="delivery-address" id={order attr="delivery_address"}}
{intl l="Delivery address"}
{loop type="title" name="customer.title.info" id=$TITLE}{$SHORT}{/loop} {$LASTNAME|upper} {$FIRSTNAME|ucwords} {$COMPANY}
{/loop}
{/elsehook} {form_field field='invoice-address'}
{intl l="Billing address"}
{if $error} {$message} {/if}
{loop type="address" name="invoice-address"} {assign var="isInvoiceAddressChecked" value="0"} {if $isPost} {if $value == $ID && $value != ""} {assign var="isInvoiceAddressChecked" value="1"} {elseif $DEFAULT} {assign var="isInvoiceAddressChecked" value="1"} {/if} {elseif $DEFAULT} {assign var="isInvoiceAddressChecked" value="1"} {/if}
{loop type="title" name="customer.title.info" id=$TITLE}{$SHORT}{/loop} {$LASTNAME|upper} {$FIRSTNAME|ucwords} {$COMPANY}
{/loop} {intl l="Change address"}
{/form_field} {form_field field='payment-module'}
{intl l="Choose your payment method"}
{if $error} {$message} {/if}

{loop type="payment" name="payments" force_return="true"} {assign "paymentModuleId" $ID}
- {loop type="image" name="paymentspicture" source="module" source_id=$ID force_return="true" width="100" height="72"} {/loop} {$TITLE} {hook name="order-invoice.payment-extra" module={$paymentModuleId}}
{/loop}

{/form_field} {form_field field="agreed"}
{$termsAndConditionsId={config key="terms_conditions_content_id"}} {if $termsAndConditionsId} {loop name="content-terms" type="content" id=$termsAndConditionsId} {$termsAndConditionsUrl=$URL} {/loop} {/if} {intl l="I've read and agreed on Terms & Conditions" link={$termsAndConditionsUrl nofilter}}. {if $error } {$message} {/if}
{/form_field} {hook name="order-invoice.payment-form"} {intl l="Back"}
{/form} {hook name="order-invoice.bottom"}
{/block} {block name="javascript-initialization"}
{hook name="order-invoice.javascript-initialization"} {/block} {block name="stylesheet"} {hook name="order-invoice.stylesheet"} {/block} {block name="after-javascript-include"} {hook name="order-invoice.after-javascript-include"} {/block}