• i would like to use this plugin for bar hours.

    the bar is open from 11:00 AM until 1:30 AM

    Currently i would have to show Mondays hours as 11 AM to midnight
    and then Tuesday from midnight until 1:30 AM Which is technically correct but not what we want.

    Can the plugin be made to show 11 AM Monday straight through to 1:30 AM Tuesday Morning as a single set of open hours?

    https://wordpress.org/plugins/wp-opening-hours/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author janizde

    (@janizde)

    Hi, yes I think this does make sense. I’ll try to implement this with the next version

    Do you happen to have an update when this feature might be available? You have the best look and options out there but this would be a huge feature for folks running a bar or restaurant.

    Thank you
    Justin

    Updates?? Unfortunately, I have to start looking for another plugin, as this one doesn’t support after hours settings.

    While we wait for janizde to update this nice plugin, heres a quick dirty fix so that at least the overview widget looks ok. Open the plugin editor in WP, select the Opening Hours plugin and edit the file OpeningPeriod.class.php. (/wp-content/plugins/wp-opening-hours/lib/classes/OpeningPeriod.class.php). At the end of the file you see

    /**
    * Removes nonsense-entries
    */
    function correctValues() {
      return ( $this->start < $this->end );
    }

    Modify it to always return true so even nonsense timeperiods will be displayed =)

    /**
    * Removes nonsense-entries
    */
    function correctValues() {
      //return ( $this->start < $this->end );
      return true;
    }
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Bar Hours’ is closed to new replies.