How can I translate these? Can I have hours for all days of the week? B.C. Monday, Tuesday etc. Is there any related documentation? Miltos
Hi @miltos, Follow the steps below to customize the Opening Hours field to your liking.
$ltOpen = empty($businessTime) ? '' : trim($businessTime[0]); $ltClose = empty($businessTime) ? '' : trim($businessTime[1]);
$ltOpen = empty($businessTime) ? '' : trim($businessTime[0]); $ltClose = empty($businessTime) ? '' : trim($businessTime[1]); $ltDate = empty($businessTime) ? '' : trim($businessTime[2]);
<?php if($ltOpen || $ltClose) :?> <li> <span class="label"><?php echo Text::_('TPL_HOURS');?>:</span> <span class="content"> <?php echo $ltOpen ;?> - <?php echo $ltClose ;?> <span class="stt-time stt-<?php echo strtolower(preg_replace('/\s*/', '', $ltStatus)) ;?>"><?php echo $ltStatus ;?></span> </span> </li> <?php endif ;?>
<?php if($ltOpen || $ltClose || $ltDate) :?> <li> <span class="label"><?php echo Text::_('TPL_HOURS');?>:</span> <span class="content"> <?php echo $ltOpen ;?> - <?php echo $ltClose ;?><?php echo $ltDate?' - '.$ltDate:''; ?> <span class="stt-time stt-<?php echo strtolower(preg_replace('/\s*/', '', $ltStatus)) ;?>"><?php echo $ltStatus ;?></span> </span> </li> <?php endif ;?>
Kind regards,
Thank you cssyeah What do you mean by "enter the Business time field in the format: Monday, Tuesday....". Should I make clones and where? Miltos
Hi Miltos,
You can translate these 2 language string: TPL_CLOSED TPL_OPEN_NOW