{extends file="admin-layout.tpl"} {block name="no-return-functions"} {$admin_current_location = 'order'} {/block} {block name="page-title"}{intl l='My orders'}{/block} {block name="check-resource"}admin.artabanmarketplace.owner{/block} {block name="check-access"}view{/block} {block name="main-content"} {assign order_page {$smarty.get.page|default:1}} {assign view_status {$smarty.get.status}} {assign status_filter {$smarty.get.status|assertType:'IntListType'}} {assign "seller_id" $smarty.get.seller_id}
{loop name="amp_seller_link_admin" type="amp_seller_link_admin" admin_id={admin attr="id"}} {hook name="orders.top" location="orders_top" }

{intl l='Orders'}
{ifloop rel="order-list"}
{admin_sortable_header current_order=$orders_order order='id' reverse_order='id-reverse' path={url path='/admin/module/artabanmarketplace/seller/orders'} request_parameter_name='orders_order' label="{intl l='ID'}" } | {admin_sortable_header current_order=$orders_order order='reference' reverse_order='reference-reverse' path={url path='/admin/module/artabanmarketplace/seller/orders'} request_parameter_name='orders_order' label="{intl l='Reference'}" } | {admin_sortable_header current_order=$orders_order order='create-date' reverse_order='create-date-reverse' path={url path='/admin/module/artabanmarketplace/seller/orders'} request_parameter_name='orders_order' label="{intl l='Date & Hour'}" } | {admin_sortable_header current_order=$orders_order order='company' reverse_order='company-reverse' path={url path='/admin/module/artabanmarketplace/seller/orders'} request_parameter_name='orders_order' label="{intl l='Company'}" } | {admin_sortable_header current_order=$orders_order order='customer-name' reverse_order='customer-name-reverse' path={url path='/admin/module/artabanmarketplace/seller/orders'} request_parameter_name='orders_order' label="{intl l='Cutomer Name'}" } | {intl l='Amount'} | {admin_sortable_header current_order=$orders_order order='status' reverse_order='status-reverse' path={url path='/admin/module/artabanmarketplace/seller/orders'} request_parameter_name='orders_order' label="{intl l='Status'}" } {hook name="orders.table-header" location="orders_table_header" } | {intl l="Actions"}
--- | --- | --- | --- | --- | --- | --- | ---
{loop type="ampseller_order" name="order-list" amp_seller_id=$SELLER_ID order=$orders_order backend_context="1" page={$order_page} limit={config key="number_default_results_per_page.order_list" default=20} status=$status_filter|default:'*' search_term=$search_term search_in="$search_in"} {loop type="order_address" name="order-invoice-address" id=$INVOICE_ADDRESS} {assign "orderInvoiceFirstName" $FIRSTNAME} {assign "orderInvoiceLastName" $LASTNAME} {assign "orderInvoiceCompany" $COMPANY} {/loop} {loop type="order-status" name="order-status" id=$STATUS} {assign "orderStatus" $TITLE} {assign "orderStatusCodeColor" $COLOR} {/loop}
{$ID} | {$REF} | {format_date date=$CREATE_DATE} | {$orderInvoiceCompany} | {$orderInvoiceFirstName|ucwords} {$orderInvoiceLastName|upper} | {format_money number=$TOTAL_TAXED_AMOUNT_POSTAGE currency_id=$CURRENCY} | {$orderStatus} {* *} {hook name="orders.table-row" location="orders_table_row" order_id={$ID} } | {loop type="auth" name="can_change" role="ADMIN" resource="admin.order" access="UPDATE"} {if $STATUS !== 5} {/if} {/loop}
{/loop}
{include file = "includes/pagination.html" loop_ref = "order-list" max_page_count = 10 page_url = {url path="/admin/module/artabanmarketplace/seller/orders" status=$status_filter orders_order=$orders_order search_term=$search_term search_in="$search_in"} }
{/ifloop} {elseloop rel="order-list"}
{intl l='You have no orders for the moment.'}
{/elseloop}

{hook name="orders.bottom" location="orders_bottom" } {/loop}
{* Cancel order confirmation dialog *} {capture "cancel_order_dialog"} {/capture} {include file = "includes/generic-confirm-dialog.html" dialog_id = "cancel_order_dialog" dialog_title = {intl l="Delete an order"} dialog_message = {intl l="Do you really want to cancel this order ?"} form_action = {token_url path='/admin/order/update/status'} form_content = {$smarty.capture.cancel_order_dialog nofilter} form_id = "cancel-order-form" } {/block} {block name="javascript-initialization"}
{/block} {block name="javascript-last-call"} {hook name="orders.js" location="orders-js" } {/block}