From 22cb58eaca6f62d41d0df5cc7a5dbe01ceaa2ef1 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Wed, 8 May 2024 16:32:34 +0530 Subject: [PATCH] Show 'Processing' to customer if all applicable order statuses are hidden --- .../css/order-detail.css | 4 +++ .../hotel-reservation-theme/order-detail.tpl | 36 +++++++++++-------- 2 files changed, 26 insertions(+), 14 deletions(-) diff --git a/themes/hotel-reservation-theme/css/order-detail.css b/themes/hotel-reservation-theme/css/order-detail.css index c128914d9..ee01d868c 100644 --- a/themes/hotel-reservation-theme/css/order-detail.css +++ b/themes/hotel-reservation-theme/css/order-detail.css @@ -211,6 +211,10 @@ line-height: 16px; } +.payment-details .detail-row .status .processing { + font-size: 16px; +} + .hotel-location p.hotel-address { font-size: 16px; line-height: 24px; diff --git a/themes/hotel-reservation-theme/order-detail.tpl b/themes/hotel-reservation-theme/order-detail.tpl index b265ab018..c2e68632d 100644 --- a/themes/hotel-reservation-theme/order-detail.tpl +++ b/themes/hotel-reservation-theme/order-detail.tpl @@ -116,13 +116,17 @@
{l s='Status'}
- - {if $order_history[0].id_order_state|in_array:$overbooking_order_states} - {l s='Order Not Confirmed'} - {else} - {$order_history[0].ostate_name|escape:'html':'UTF-8'} - {/if} - + {if isset($order_history[0]) && $order_history[0]} + + {if $order_history[0].id_order_state|in_array:$overbooking_order_states} + {l s='Order Not Confirmed'} + {else} + {$order_history[0].ostate_name|escape:'html':'UTF-8'} + {/if} + + {else} + {l s='Processing'} + {/if}
@@ -499,13 +503,17 @@
{l s='Status'}
- - {if $order_history[0].id_order_state|in_array:$overbooking_order_states} - {l s='Order Not Confirmed'} - {else} - {$order_history[0].ostate_name|escape:'html':'UTF-8'} - {/if} - + {if isset($order_history[0]) && $order_history[0]} + + {if $order_history[0].id_order_state|in_array:$overbooking_order_states} + {l s='Order Not Confirmed'} + {else} + {$order_history[0].ostate_name|escape:'html':'UTF-8'} + {/if} + + {else} + {l s='Processing'} + {/if}