From 8ab3412cddae0506b7de880d5f640f841eef24df Mon Sep 17 00:00:00 2001 From: Sumit Panwar Date: Wed, 4 Jun 2025 18:50:08 +0530 Subject: [PATCH] fixed: Total room option should not be available in refund request for standalone product --- .../helpers/view/view.tpl | 28 +++++++++++++------ 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/modules/hotelreservationsystem/views/templates/admin/order_refund_requests/helpers/view/view.tpl b/modules/hotelreservationsystem/views/templates/admin/order_refund_requests/helpers/view/view.tpl index 934e9deae..7d8987fc4 100644 --- a/modules/hotelreservationsystem/views/templates/admin/order_refund_requests/helpers/view/view.tpl +++ b/modules/hotelreservationsystem/views/templates/admin/order_refund_requests/helpers/view/view.tpl @@ -81,14 +81,26 @@ {displayPrice price=$orderTotalPaid currency=$orderInfo['id_currency']} -
-
- {l s='Total rooms' mod='hotelreservationsystem'} : -
-
- {$refundReqBookings|count} -
-
+ {if isset($refundReqBookings) && $refundReqBookings} +
+
+ {l s='Total rooms' mod='hotelreservationsystem'} : +
+
+ {$refundReqBookings|count} +
+
+ {/if} + {if isset($refundReqProducts) && $refundReqProducts} +
+
+ {l s='Total products' mod='hotelreservationsystem'} : +
+
+ {$refundReqProducts|count} +
+
+ {/if}
{l s='Way of payment' mod='hotelreservationsystem'} :