From 5e612c5b4f100727d25fd15a851d5e02b78dead4 Mon Sep 17 00:00:00 2001 From: abhisheks Date: Sun, 26 Nov 2023 18:25:46 +0530 Subject: [PATCH] refactor: update orders history page --- templates/customer/history.tpl | 90 ++++++++++++---------------------- 1 file changed, 32 insertions(+), 58 deletions(-) diff --git a/templates/customer/history.tpl b/templates/customer/history.tpl index 422757f..63b36d3 100644 --- a/templates/customer/history.tpl +++ b/templates/customer/history.tpl @@ -25,95 +25,69 @@ {extends file='customer/page.tpl'} {block name='page_title'} - {l s='Order history' d='Shop.Theme.Customeraccount'} +

+ {l s='Order history' d='Shop.Theme.Customeraccount'} +

{/block} {block name='page_content'} -
{l s='Here are the orders you\'ve placed since your account was created.' d='Shop.Theme.Customeraccount'}
+
{l s='Here are the orders you\'ve placed since your account was created.' d='Shop.Theme.Customeraccount'}
{if $orders} - +
- - - + + + {foreach from=$orders item=order} - - - - - - + + + + - - {/foreach}
{l s='Order reference' d='Shop.Theme.Checkout'} {l s='Date' d='Shop.Theme.Checkout'} {l s='Total price' d='Shop.Theme.Checkout'}{l s='Payment' d='Shop.Theme.Checkout'}{l s='Status' d='Shop.Theme.Checkout'}{l s='Invoice' d='Shop.Theme.Checkout'}{l s='Payment' d='Shop.Theme.Checkout'}{l s='Status' d='Shop.Theme.Checkout'}{l s='Invoice' d='Shop.Theme.Checkout'}  
{$order.details.reference}{$order.details.order_date}{$order.totals.total.value}{$order.details.payment} - +
{$order.details.reference} + {$order.details.order_date}{$order.totals.total.value}{$order.details.payment} {$order.history.current.ostate_name} - + {if $order.details.invoice_url} - + + + {else} - {/if} + - {l s='Details' d='Shop.Theme.Customeraccount'} + +

+ {l s='Details' d='Shop.Theme.Customeraccount'} +

{if $order.details.reorder_url} - {l s='Reorder' d='Shop.Theme.Actions'} + + +

+ {l s='Reorder' d='Shop.Theme.Actions'} +

+
{/if}
- -
- {foreach from=$orders item=order} -
-
-
-

{$order.details.reference}

-
{$order.details.order_date}
-
{$order.totals.total.value}
-
- - {$order.history.current.ostate_name} - -
-
-
- - {if $order.details.reorder_url} - - {/if} -
-
-
- {/foreach} + {else} +
+ You have not placed any orders yet !
- {/if} {/block}