Mealtimes Created by: Ryan Mitchell

 22

Extend mealtimes to work on specific days and date ranges

 Extension
Version
v1.0.0
Updated
4 weeks ago
Published
3 weeks ago
Author
Ryan Mitchell
 Public repository

Views: 147

Extend Mealtimes to become Meal Schedules

Extends mealtimes to allow for menu scheduling and different menus on different days.

After Installation

If you are using the tastyigniter-orange theme you need to amend _partials/localMenu/item.php as follows:

$mealtimeNotAvailable = ($mealtime AND !$mealtime->isAvailableNow());

becomes

$mealtimeNotAvailable = ($mealtime AND !$mealtime->isAvailableSchedule($location->orderDateTime()));

wrap the entire HTML output in

if ($mealtimeNotAvailable == false){

}

i.e.

if ($mealtimeNotAvailable == false){

?>

....

<?php } ?>

Releases

  1.   Latest release
    1.0

    Initial version of extension