Show full selected hotels list in tooltip, keep badge count as remaining

This commit is contained in:
aradhana kumari
2026-08-25 11:43:51 +05:30
parent 9d28a35b35
commit f1d84ae24c
2 changed files with 2 additions and 1 deletions

View File

@@ -27,7 +27,7 @@
<div class="tooltip_cont">
<div class="tip_header"><div class="tip_date">{l s='Selected Hotels'}</div></div>
<ul>
{foreach from=$hotel_names_remaining item='hotel'}
{foreach from=$selected_hotels item='hotel'}
<li class="tip_element_value">{$hotel|escape:'html':'UTF-8'}</li>
{/foreach}
</ul>

View File

@@ -92,6 +92,7 @@ class AdminCartRulesControllerCore extends AdminController
$this->context->smarty->assign(array(
'hotel_names_first' => !empty($hotels) ? $hotels[0] : null,
'hotel_names_remaining' => count($hotels) > 1 ? array_slice($hotels, 1) : array(),
'selected_hotels' => $hotels,
));
return $this->context->smarty->fetch(