J-BusinessDirectory - Business Hours and Notes

Support Forum

 
 

 

I have an update request concerning the display of Business Hours Notes on the front-end for business listings.

Currently there is a check to ensure that there is some information entered into the Business Hours fields. However that does not include the "Notes". (BTW I am glad to see that this is now in the lanuage files.) It would be nice if there were no hours entered if it would simply display the notes. This is important if a business is open 24/7. They can simply state that in the notes field and we are good that will be displayed without any weekdays associated.


This is a very easy fix. See the adjustment on style 5 below:


<?php if((isset($this->package->features) && in_array(OPENING_HOURS,$this->package->features) || !$appSettings->enable_packages) && !empty($this->company->business_hours)) { ?>


This can be changed to:


<?php if((isset($this->package->features) && in_array(OPENING_HOURS,$this->package->features) || !$appSettings->enable_packages) && !empty($this->company->business_hours || !empty($this->company->notes_hours))) { ?>


Problem Solved :)

0 replies
 
 
 

1 Item

Show per page