diff --git a/admin/themes/default/template/controllers/orders/_overbookings.tpl b/admin/themes/default/template/controllers/orders/_overbookings.tpl
index 963b33489..5d5e90fb5 100644
--- a/admin/themes/default/template/controllers/orders/_overbookings.tpl
+++ b/admin/themes/default/template/controllers/orders/_overbookings.tpl
@@ -39,7 +39,8 @@
| {$data['room_num']} |
{$data['room_type_name']} |
- {dateFormat date=$data['date_from']} {l s='To'} {dateFormat date=$data['date_to']} |
+ {assign var="is_full_date" value=($show_full_date && ($data['date_from']|date_format:'%D' == $data['date_to']|date_format:'%D'))}
+ {dateFormat date=$data['date_from'] full=$is_full_date} {l s='To'} {dateFormat date=$data['date_to'] full=$is_full_date} |
{if $order->with_occupancy && $data['children']}
diff --git a/admin/themes/default/template/controllers/orders/_product_line.tpl b/admin/themes/default/template/controllers/orders/_product_line.tpl
index c697a8b6f..1e44a648f 100644
--- a/admin/themes/default/template/controllers/orders/_product_line.tpl
+++ b/admin/themes/default/template/controllers/orders/_product_line.tpl
@@ -35,7 +35,8 @@
{$data.room_type}
|
- {dateFormat date=$data.date_from} - {dateFormat date=$data.date_to}
+ {assign var="is_full_date" value=($show_full_date && ($data['date_from']|date_format:'%D' == $data['date_to']|date_format:'%D'))}
+ {dateFormat date=$data.date_from full=$is_full_date} - {dateFormat date=$data.date_to full=$is_full_date}
|
{if $data['children']}
diff --git a/admin/themes/default/template/controllers/orders/_resolvable_overbookings.tpl b/admin/themes/default/template/controllers/orders/_resolvable_overbookings.tpl
index b2f5cba79..30057260c 100644
--- a/admin/themes/default/template/controllers/orders/_resolvable_overbookings.tpl
+++ b/admin/themes/default/template/controllers/orders/_resolvable_overbookings.tpl
@@ -55,7 +55,8 @@
|
{$data['hotel_name']}
|
- {dateFormat date=$data['date_from']|escape:'html':'UTF-8'} {l s='To'} {dateFormat date=$data['date_to']|escape:'html':'UTF-8'} |
+ {assign var="is_full_date" value=($show_full_date && ($data['date_from']|date_format:'%D' == $data['date_to']|date_format:'%D'))}
+ {dateFormat date=$data['date_from']|escape:'html':'UTF-8' full=$is_full_date} {l s='To'} {dateFormat date=$data['date_to']|escape:'html':'UTF-8' full=$is_full_date} |
#{$data['id_order']|escape:'html':'UTF-8'}
|
diff --git a/admin/themes/default/template/controllers/orders/helpers/view/view.tpl b/admin/themes/default/template/controllers/orders/helpers/view/view.tpl
index 7a0554fbc..d2a660045 100644
--- a/admin/themes/default/template/controllers/orders/helpers/view/view.tpl
+++ b/admin/themes/default/template/controllers/orders/helpers/view/view.tpl
@@ -115,7 +115,8 @@
{$data['room_type_name']|escape:'html':'UTF-8'}
- {dateFormat date=$data['date_from']} - {dateFormat date=$data['date_to']}
+ {assign var="is_full_date" value=($show_full_date && ($data['date_from']|date_format:'%D' == $data['date_to']|date_format:'%D'))}
+ {dateFormat date=$data['date_from'] full=$is_full_date} - {dateFormat date=$data['date_to'] full=$is_full_date}
|
{if ($data['id_status'] == $hotel_order_status['STATUS_CHECKED_IN']['id_status']) || ($data['id_status'] == $hotel_order_status['STATUS_CHECKED_OUT']['id_status'])}
diff --git a/admin/themes/default/template/controllers/orders/modals/_cancel_room_bookings.tpl b/admin/themes/default/template/controllers/orders/modals/_cancel_room_bookings.tpl
index 5fbe2f90d..a3ee9d651 100644
--- a/admin/themes/default/template/controllers/orders/modals/_cancel_room_bookings.tpl
+++ b/admin/themes/default/template/controllers/orders/modals/_cancel_room_bookings.tpl
@@ -42,7 +42,8 @@
| {$bookingInfo.room_num|escape:'html':'UTF-8'} |
{$bookingInfo.room_type_name|escape:'html':'UTF-8'} |
{$bookingInfo.hotel_name|escape:'html':'UTF-8'} |
- {dateFormat date=$bookingInfo.date_from} - {dateFormat date=$bookingInfo.date_to} |
+ {assign var="is_full_date" value=($show_full_date && ($bookingInfo['date_from']|date_format:'%D' == $bookingInfo['date_to']|date_format:'%D'))}
+ {dateFormat date=$bookingInfo.date_from full=$is_full_date} - {dateFormat date=$bookingInfo.date_to full=$is_full_date} |
{convertPriceWithCurrency price=$bookingInfo.total_price_tax_incl currency=$currency->id} |
{/foreach}
diff --git a/classes/controller/AdminController.php b/classes/controller/AdminController.php
index 8115f30b6..4f0125e66 100644
--- a/classes/controller/AdminController.php
+++ b/classes/controller/AdminController.php
@@ -2160,7 +2160,8 @@ class AdminControllerCore extends Controller
'currentIndex' => self::$currentIndex,
'bootstrap' => $this->bootstrap,
'default_language' => (int)Configuration::get('PS_LANG_DEFAULT'),
- 'display_addons_connection' => Tab::checkTabRights(Tab::getIdFromClassName('AdminModulesController'))
+ 'display_addons_connection' => Tab::checkTabRights(Tab::getIdFromClassName('AdminModulesController')),
+ 'show_full_date' => $this->show_full_date,
));
$module = Module::getInstanceByName('themeconfigurator');
diff --git a/classes/controller/Controller.php b/classes/controller/Controller.php
index a21ca409c..e9628c6a8 100644
--- a/classes/controller/Controller.php
+++ b/classes/controller/Controller.php
@@ -78,6 +78,8 @@ abstract class ControllerCore
/** @var string Controller name */
public $php_self;
+ public $show_full_date = false;
+
/**
* Check if the controller is available for the current user/visitor
*/
diff --git a/classes/controller/FrontController.php b/classes/controller/FrontController.php
index c3d116e54..76a303605 100644
--- a/classes/controller/FrontController.php
+++ b/classes/controller/FrontController.php
@@ -596,7 +596,8 @@ class FrontControllerCore extends Controller
'HOOK_TOP' => Hook::exec('displayTop'),
'HOOK_LEFT_COLUMN' => ($this->display_column_left ? Hook::exec('displayLeftColumn') : ''),
'HOOK_RIGHT_COLUMN' => ($this->display_column_right ? Hook::exec('displayRightColumn', array('cart' => $this->context->cart)) : ''),
- 'show_breadcrump' => $this->show_breadcrump, // By webkul
+ 'show_breadcrump' => $this->show_breadcrump,
+ 'show_full_date' => $this->show_full_date
));
} else {
$this->context->smarty->assign('HOOK_MOBILE_HEADER', Hook::exec('displayMobileHeader'));
@@ -1191,6 +1192,7 @@ class FrontControllerCore extends Controller
'token' => Tools::getToken(),
'priceDisplayPrecision' => _PS_PRICE_DISPLAY_PRECISION_,
'content_only' => (int)Tools::getValue('content_only'),
+ 'show_full_date' => $this->show_full_date,
));
$this->context->smarty->assign($this->initLogoAndFavicon());
diff --git a/classes/module/Module.php b/classes/module/Module.php
index 3ca653693..eee3a4a67 100644
--- a/classes/module/Module.php
+++ b/classes/module/Module.php
@@ -2874,13 +2874,13 @@ abstract class ModuleCore
$overrides = array();
foreach (Tools::scandir($this->getLocalPath().'override', 'php', '', true) as $file) {
$class = basename($file, '.php');
- if ($class != 'index') {
- $classInfo = array('class' => $class, 'file' => $file, 'type' => null);
- if (PrestaShopAutoload::getInstance()->getClassPath($class.'Core')) {
- $classInfo['type'] = self::OVERRIDE_TYPE_CORE;
- } elseif (Module::getModuleIdByName($class)) {
- $classInfo['type'] = self::OVERRIDE_TYPE_MODULE;
- } elseif (preg_match('#^modules/([a-zA-Z0-9_-]+)/controllers/(admin|front)/([0-9a-zA-Z-_]+).php#', $file, $matches)) {
+ $classInfo = array('class' => $class, 'file' => $file, 'type' => null);
+ if (PrestaShopAutoload::getInstance()->getClassPath($class.'Core')) {
+ $classInfo['type'] = self::OVERRIDE_TYPE_CORE;
+ } elseif (Module::getModuleIdByName($class)) {
+ $classInfo['type'] = self::OVERRIDE_TYPE_MODULE;
+ } elseif (preg_match('#^modules/([a-zA-Z0-9_-]+)/controllers/(admin|front)/([0-9a-zA-Z-_]+).php#', $file, $matches)) {
+ if ($class != 'index') {
$classInfo['type'] = self::OVERRIDE_TYPE_MODULE_CONTROLLER;
$classInfo['module'] = $matches[1];
$classInfo['controller_type'] = $matches[2];
diff --git a/classes/pdf/HTMLTemplateInvoice.php b/classes/pdf/HTMLTemplateInvoice.php
index 75d696ffd..118acabc8 100644
--- a/classes/pdf/HTMLTemplateInvoice.php
+++ b/classes/pdf/HTMLTemplateInvoice.php
@@ -475,8 +475,9 @@ class HTMLTemplateInvoiceCore extends HTMLTemplate
$num_days = $obj_htl_bk_dtl->getNumberOfDays($data_v['date_from'], $data_v['date_to']);
$cart_htl_data[$type_key]['date_diff'][$date_join]['num_rm'] = 1;
- $cart_htl_data[$type_key]['date_diff'][$date_join]['data_form'] = Tools::displayDate($data_v['date_from']);
- $cart_htl_data[$type_key]['date_diff'][$date_join]['data_to'] = Tools::displayDate($data_v['date_to']);
+ $fullDate = ($this->context->controller->show_full_date && (date('Y-m-d', strtotime($data_v['date_from'])) == date('Y-m-d', strtotime($data_v['date_to']))) ? true : false);
+ $cart_htl_data[$type_key]['date_diff'][$date_join]['data_form'] = Tools::displayDate($data_v['date_from'], null, $fullDate);
+ $cart_htl_data[$type_key]['date_diff'][$date_join]['data_to'] = Tools::displayDate($data_v['date_to'], null, $fullDate);
$cart_htl_data[$type_key]['date_diff'][$date_join]['num_days'] = $num_days;
$cart_htl_data[$type_key]['date_diff'][$date_join]['adults'] = $data_v['adults'];
$cart_htl_data[$type_key]['date_diff'][$date_join]['children'] = $data_v['children'];
diff --git a/modules/blockcart/blockcart.php b/modules/blockcart/blockcart.php
index db92cb01d..eb4edfc71 100644
--- a/modules/blockcart/blockcart.php
+++ b/modules/blockcart/blockcart.php
@@ -248,8 +248,9 @@ class Blockcart extends Module
} else {
$addedProduct['price'] = Tools::displayPrice($price['total_price_tax_incl']);
}
- $addedProduct['date_from'] = Tools::displayDate($addedProduct['date_from']);
- $addedProduct['date_to'] = Tools::displayDate($addedProduct['date_to']);
+ $fullDate = ($this->context->controller->show_full_date && (date('Y-m-d', strtotime($addedProduct['date_from'])) == date('Y-m-d', strtotime($addedProduct['date_to']))) ? true : false);
+ $addedProduct['date_from'] = Tools::displayDate($addedProduct['date_from'], null, $fullDate);
+ $addedProduct['date_to'] = Tools::displayDate($addedProduct['date_to'], null, $fullDate);
} else {
// @todo get price of added product from front
$addedProduct['price'] = ProductCore::getPriceStatic(
diff --git a/modules/blockcart/blockcart.tpl b/modules/blockcart/blockcart.tpl
index bfce85de7..b79cd8c56 100644
--- a/modules/blockcart/blockcart.tpl
+++ b/modules/blockcart/blockcart.tpl
@@ -134,7 +134,8 @@
{foreach from=$product.bookingData['date_diff'] key=data_k1 item=data_v}
|
- {$data_v['data_form']|date_format:"%d-%m-%Y"} - {$data_v['data_to']|date_format:"%d-%m-%Y"}
+ {assign var="is_full_date" value=($show_full_date && ($data_v['data_form']|date_format:'%D' == $data_v['data_to']|date_format:'%D'))}
+ {dateFormat date=$data_v['data_form'] full=$is_full_date} - {dateFormat date=$data_v['data_to'] full=$show_full_date}
|
{$data_v['num_rm']} |
{convertPrice price=($data_v['amount'] + $data_v['demand_price'])} |
diff --git a/modules/hotelreservationsystem/views/templates/admin/hotel_rooms_booking/helpers/view/_partials/booking-cart.tpl b/modules/hotelreservationsystem/views/templates/admin/hotel_rooms_booking/helpers/view/_partials/booking-cart.tpl
index e32b07ce1..d0507dfad 100644
--- a/modules/hotelreservationsystem/views/templates/admin/hotel_rooms_booking/helpers/view/_partials/booking-cart.tpl
+++ b/modules/hotelreservationsystem/views/templates/admin/hotel_rooms_booking/helpers/view/_partials/booking-cart.tpl
@@ -26,7 +26,8 @@
| {$cart_data['room_num']|escape:'htmlall':'UTF-8'} |
{$cart_data['room_type']|escape:'htmlall':'UTF-8'} |
- {dateFormat date=$cart_data['date_from']} - {dateFormat date=$cart_data['date_to']} |
+ {assign var="is_full_date" value=($show_full_date && ($cart_data['date_from']|date_format:'%D' == $cart_data['date_to']|date_format:'%D'))}
+ {dateFormat date=$cart_data['date_from'] full=$is_full_date} - {dateFormat date=$cart_data['date_to'] full=$is_full_date} |
{convertPrice price=($cart_data['amt_with_qty'] + $cart_data['additional_services_auto_add_with_room_price'] + $cart_data['additional_service_price'] + $cart_data['demand_price'])} |
|
diff --git a/modules/hotelreservationsystem/views/templates/admin/hotel_rooms_booking/helpers/view/_partials/booking-rooms.tpl b/modules/hotelreservationsystem/views/templates/admin/hotel_rooms_booking/helpers/view/_partials/booking-rooms.tpl
index e4bf1cb95..7c68db350 100644
--- a/modules/hotelreservationsystem/views/templates/admin/hotel_rooms_booking/helpers/view/_partials/booking-rooms.tpl
+++ b/modules/hotelreservationsystem/views/templates/admin/hotel_rooms_booking/helpers/view/_partials/booking-rooms.tpl
@@ -41,7 +41,8 @@
{foreach from=$book_v['data']['available'] key=avai_k item=avai_v}
| {$avai_v['room_num']|escape:'htmlall':'UTF-8'} {hook h='displayRoomNumAfter' data=$avai_v type='available'} |
- {dateFormat date=$date_from} - {dateFormat date=$date_to} |
+ {assign var="is_full_date" value=($show_full_date && ($date_from|date_format:'%D' == $date_to|date_format:'%D'))}
+ {dateFormat date=$date_from full=$is_full_date} - {dateFormat date=$date_to full=$is_full_date} |
{$avai_v['room_comment']|escape:'htmlall':'UTF-8'} |
{foreach $allotment_types as $allotment_type}
@@ -126,8 +127,9 @@
{foreach from=$part_v['rooms'] key=sub_part_k item=sub_part_v}
|
{if $sub_part_v@first}
+ {assign var="is_full_date" value=($show_full_date && ($part_v['date_from']|date_format:'%D' == $part_v['date_to']|date_format:'%D'))}
|
- {dateFormat date=$part_v['date_from']} - {dateFormat date=$part_v['date_to']}
+ {dateFormat date=$part_v['date_from'] full=$is_full_date} - {dateFormat date=$part_v['date_to'] full=$is_full_date}
|
{/if}
{$sub_part_v['room_num']|escape:'htmlall':'UTF-8'} {hook h='displayRoomNumAfter' data=$sub_part_v type='partially_available'} |
@@ -213,10 +215,11 @@
{foreach from=$book_v['data']['booked'] key=booked_k item=booked_v}
{foreach from=$booked_v['detail'] key=rm_dtl_k item=rm_dtl_v}
+ {assign var="is_full_date" value=($show_full_date && ($rm_dtl_v['date_from']|date_format:'%D' == $rm_dtl_v['date_to']|date_format:'%D'))}
{if $rm_dtl_v@first}
| {$booked_v['room_num']|escape:'htmlall':'UTF-8'} {hook h='displayRoomNumAfter' data=$booked_v key=$rm_dtl_k type='booked'} |
{/if}
- {dateFormat date=$rm_dtl_v['date_from']} - {dateFormat date=$rm_dtl_v['date_to']} |
+ {dateFormat date=$rm_dtl_v['date_from'] full=$is_full_date} - {dateFormat date=$rm_dtl_v['date_to'] full=$is_full_date} |
#{$rm_dtl_v['id_order']} |
{$rm_dtl_v['comment']|escape:'htmlall':'UTF-8'} |
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 ea4f1328a..efa12371a 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
@@ -147,7 +147,8 @@
| {$booking['room_num']|escape:'htmlall':'UTF-8'} |
{$booking['room_type_name']|escape:'htmlall':'UTF-8'} |
{$booking['hotel_name']|escape:'htmlall':'UTF-8'} |
- {$booking['date_from']|date_format:"%d-%m-%Y"} {l s='To' mod='hotelreservationsystem'} {$booking['date_to']|date_format:"%d-%m-%Y"} |
+ {assign var="is_full_date" value=($show_full_date && ($booking['date_from']|date_format:'%D' == $booking['date_to']|date_format:'%D'))}
+ {dateFormat date=$booking['date_from'] full=$is_full_date} {l s='To' mod='hotelreservationsystem'} {dateFormat date=$booking['date_to'] full=$is_full_date} |
{displayPrice price=($booking['total_price_tax_incl'] + $booking['extra_service_total_price_tax_incl']) currency=$orderCurrency['id']}
diff --git a/themes/hotel-reservation-theme/_partials/order-room-detail.tpl b/themes/hotel-reservation-theme/_partials/order-room-detail.tpl
index c51b8b1c5..6198e7b49 100644
--- a/themes/hotel-reservation-theme/_partials/order-room-detail.tpl
+++ b/themes/hotel-reservation-theme/_partials/order-room-detail.tpl
@@ -61,16 +61,17 @@
+ {assign var="is_full_date" value=($show_full_date && ($rm_v['data_form']|date_format:'%D' == $rm_v['data_to']|date_format:'%D'))}
- {l s='Check-in'}
- - {$rm_v.data_form|date_format:'D'}, {dateFormat date=$rm_v.data_form}
+ - {dateFormat date=$rm_v.data_form full=$is_full_date}
- {l s='Check-out'}
- - {$rm_v.data_to|date_format:'D'}, {dateFormat date=$rm_v.data_to}
+ - {dateFormat date=$rm_v.data_to full=$is_full_date}
diff --git a/themes/hotel-reservation-theme/global.tpl b/themes/hotel-reservation-theme/global.tpl
index a1bc8715e..55a1cdd44 100644
--- a/themes/hotel-reservation-theme/global.tpl
+++ b/themes/hotel-reservation-theme/global.tpl
@@ -57,6 +57,7 @@
{addJsDef quickView=$quick_view|boolval}
{addJsDef displayList=Configuration::get('PS_GRID_PRODUCT')|boolval}
{addJsDef highDPI=Configuration::get('PS_HIGHT_DPI')|boolval}
+{addJsDef showFullDate=$show_full_date|boolval}
{* occupancy text *}
{addJsDef is_occupancy_wise_search=$is_occupancy_wise_search|boolval}
{addJsDef occupancy_required_for_booking=$occupancy_required_for_booking|boolval}
diff --git a/themes/hotel-reservation-theme/modules/blockcart/blockcart.tpl b/themes/hotel-reservation-theme/modules/blockcart/blockcart.tpl
index bfce85de7..0a708b898 100644
--- a/themes/hotel-reservation-theme/modules/blockcart/blockcart.tpl
+++ b/themes/hotel-reservation-theme/modules/blockcart/blockcart.tpl
@@ -133,8 +133,9 @@
|
{foreach from=$product.bookingData['date_diff'] key=data_k1 item=data_v}
+ {assign var="is_full_date" value=($show_full_date && ($data_v['data_form']|date_format:'%D' == $data_v['data_to']|date_format:'%D'))}
|
- {$data_v['data_form']|date_format:"%d-%m-%Y"} - {$data_v['data_to']|date_format:"%d-%m-%Y"}
+ {dateFormat date=$data_v['data_form'] full=$is_full_date} - {dateFormat date=$data_v['data_to'] full=$show_full_date}
|
{$data_v['num_rm']} |
{convertPrice price=($data_v['amount'] + $data_v['demand_price'])} |
diff --git a/themes/hotel-reservation-theme/order-confirmation.tpl b/themes/hotel-reservation-theme/order-confirmation.tpl
index d1408fb15..b9da73d60 100644
--- a/themes/hotel-reservation-theme/order-confirmation.tpl
+++ b/themes/hotel-reservation-theme/order-confirmation.tpl
@@ -120,17 +120,18 @@
{/block}
+ {assign var="is_full_date" value=($show_full_date && ($rm_v['data_form']|date_format:'%D' == $rm_v['data_to']|date_format:'%D'))}
{block name='order_detail_room_type_check_in'}
- {$rm_v['data_form']|date_format:"%d-%m-%Y"}
+ {dateFormat date=$rm_v['data_form'] full=$is_full_date}
|
{/block}
{block name='order_detail_room_type_check_out'}
- {$rm_v['data_to']|date_format:"%d-%m-%Y"}
+ {dateFormat date=$rm_v['data_to'] full=$is_full_date}
|
{/block}
diff --git a/themes/hotel-reservation-theme/order-detail.tpl b/themes/hotel-reservation-theme/order-detail.tpl
index 281019490..563f44879 100644
--- a/themes/hotel-reservation-theme/order-detail.tpl
+++ b/themes/hotel-reservation-theme/order-detail.tpl
@@ -846,10 +846,11 @@
{assign var='flag_is_first_iteration' value=true}
{foreach from=$cart_htl_data key=data_k item=data_v}
{foreach from=$data_v['date_diff'] key=rm_k item=rm_v}
+ {assign var="is_full_date" value=($show_full_date && ($rm_v['data_form']|date_format:'%D' == $rm_v['data_to']|date_format:'%D'))}
{$data_v.name}
- {dateFormat date=$rm_v.data_form} - {dateFormat date=$rm_v.data_to}
+ {dateFormat date=$rm_v.data_form full=$is_full_date} - {dateFormat date=$rm_v.data_to full=$is_full_date}
{if $flag_is_first_iteration}{assign var='flag_is_first_iteration' value=false}{/if}
diff --git a/themes/hotel-reservation-theme/order-return.tpl b/themes/hotel-reservation-theme/order-return.tpl
index b90ed3414..438aed994 100644
--- a/themes/hotel-reservation-theme/order-return.tpl
+++ b/themes/hotel-reservation-theme/order-return.tpl
@@ -71,7 +71,8 @@
{l s='Room'} - {$smarty.foreach.refundRequest.iteration|string_format:'%02d'} |
{$booking['room_type_name']|escape:'htmlall':'UTF-8'} |
{$booking['hotel_name']|escape:'htmlall':'UTF-8'} |
- {$booking['date_from']|date_format:"%d-%m-%Y"} {l s='To'} {$booking['date_to']|date_format:"%d-%m-%Y"} |
+ {assign var="is_full_date" value=($show_full_date && ($booking['date_from']|date_format:'%D' == $booking['date_to']|date_format:'%D'))}
+ {dateFormat date=$booking['date_from'] full=$is_full_date} {l s='To'} {dateFormat date=$booking['date_to'] full=$is_full_date} |
{displayPrice price=$booking['total_price_tax_incl'] currency=$orderCurrency['id']} |
{displayPrice price=$booking['extra_service_total_price_tax_incl'] currency=$orderCurrency['id']} |
{if $isRefundCompleted}
diff --git a/themes/hotel-reservation-theme/shopping-cart.tpl b/themes/hotel-reservation-theme/shopping-cart.tpl
index ac26d7ef5..c73a32ddf 100644
--- a/themes/hotel-reservation-theme/shopping-cart.tpl
+++ b/themes/hotel-reservation-theme/shopping-cart.tpl
@@ -153,14 +153,15 @@
{/if}
{/block}
{block name='shopping_cart_room_type_booking_information'}
+ {assign var="is_full_date" value=($show_full_date && ($rm_v['data_form']|date_format:'%D' == $rm_v['data_to']|date_format:'%D'))}
{l s='CHECK IN'}
-
{$rm_v['data_form']|date_format:"%d %b, %a"}
+
{$rm_v['data_form']|date_format:"%d %b, %a"}{if $is_full_date} {$rm_v['data_form']|date_format:"%H:%M"}{/if}
{l s='CHECK OUT'}
-
{$rm_v['data_to']|date_format:"%d %b, %a"}
+
{$rm_v['data_to']|date_format:"%d %b, %a"}{if $is_full_date} {$rm_v['data_to']|date_format:"%H:%M"}{/if}