From bab130dae557607f8542719af42d204bbb3d11ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Mon, 26 Jul 2021 14:06:51 +0800 Subject: Dynamic order info --- pages/query/order_detail.html | 39 ++++++++++++++++++++++++++------------- 1 file changed, 26 insertions(+), 13 deletions(-) (limited to 'pages') diff --git a/pages/query/order_detail.html b/pages/query/order_detail.html index 01d55cf..47cab87 100644 --- a/pages/query/order_detail.html +++ b/pages/query/order_detail.html @@ -1,14 +1,27 @@ +[tmp members_only]1[/tmp] + @_TOP_@ + +[tmpn bounce_page]query/check_orders[/tmpn] +[perl transactions] + my $on = $Session->{arg}; + my $un = $Tag->data('transactions', 'username', $on); + if($un eq $Session->{username}) { + delete $Scratch->{bounce_page}; + } + else { + $Tag->warnings('Not your order!'); + } + return; +[/perl] +[bounce page="[scratch bounce_page]" if="[scratch bounce_page]"] + +[loop list="[data session arg]"]
-

[L]Order #1234[/L]

- [if session logged_in] - [else] - [include include/checkout/login_form][/else][/if][if !variable NO_TAX_POPUP] - [include include/checkout/tax_popup][/if] - [edisplay show_label=1 show_var=0 keep=1] +

[L]Order[/L] #[loop-data transactions order_number]

@@ -23,19 +36,19 @@

- 673290789 + [loop-data transactions tracking_number]

-
Shipped date:
+
[L]Order Date[/L]:

@@ -46,7 +59,7 @@ - In Transit + [display table=transactions col=status type=display key="[loop-code]" applylocale=1]
@@ -56,7 +69,7 @@

- $259.00 + [currency][loop-data transactions total_cost][/currency]

@@ -151,6 +164,6 @@ - +[/loop] -__BOTTOM__ \ No newline at end of file +__BOTTOM__ -- cgit v1.2.3