Looking for a custom TastyIgniter theme or extension development? Request a quote now!

Mealtimes

Created by Ryan Mitchell
  1,097 installs

Extend mealtimes to work on specific days and date ranges

  • Version:
    1.14
  • Last Updated:
    1 month ago
  • Published:
    12 Jun 20
  • License:
  • Public repository:

Extend Mealtimes to become Meal Schedules

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

This is free and doesn't require a license, but you can donate to Ryan, the developer behind it, to show your appreciation.

After Installation

If you want the menu items to be hidden when unavailable, then modify the mapIntoObjects() function in extensions/igniter/local/components/Menu.php by adding the following before $list->setCollection();

$collection = $collection->filter(function ($menuItem) {
	return !$menuItem->mealtimeIsNotAvailable;
});

If you are grouping by categories and want categories with no items to be removed from the menu list, then amend components/menu/grouped.blade.php by adding @if (count($menuList)) before <div class="menu-group-item"> and @endif after the closing </div> of the same element

Releases

  1.   Latest release
    1.14

    Update partials to blade and support new composer manifest

  2. v1.13

    ** ONLY UPGRADE IF YOU ARE RUNNING 3.0.5 OR HIGHER **

    Support for a simpler install through the admin.menu.isAvailable event.

  3. v1.12

  4. v1.11

  • Version:
    1.14
  • Last Updated:
    1 month ago
  • Published:
    12 Jun 20
  • License:
  • Public repository:

Build and sell all things TastyIgniter

Become an Author
Continue