GithubHelp home page GithubHelp logo

wpeverest / restaurantpress Goto Github PK

View Code? Open in Web Editor NEW
10.0 7.0 3.0 4.06 MB

WordPress Plugin for Restaurant Menus. https://wordpress.org/plugins/restaurantpress/

License: Other

JavaScript 44.14% CSS 6.61% PHP 48.87% Shell 0.38%

restaurantpress's Introduction

WordPress.org downloads WordPress.org rating Build Status codecov

Welcome to the RestaurantPress repository on GitHub. Here you can browse the source, look at open issues and keep track of development. We recommend all developers to follow the WPEverest blog to stay up to date about everything happening in the project. You can also follow @WPEverest on Twitter for the latest development updates.

If you are not a developer, please use the RestaurantPress plugin page on WordPress.org.

Documentation

Support

This repository is not suitable for support. Please don't use our issue tracker for support requests, but for core RestaurantPress issues only. Support can take place through the appropriate channels:

Support requests in issues on this repository will be closed on sight.

Contributing to RestaurantPress

If you have a patch or have stumbled upon an issue with RestaurantPress core, you can contribute this back to the code. Please read our contributor guidelines for more information how you can do this.

restaurantpress's People

Contributors

bipin8singh avatar coderkoala avatar nilanzva avatar rabinstha avatar roshansameer avatar sethstha avatar shivapoudel avatar ughimire avatar uniquesuzan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

restaurantpress's Issues

Plugin Uninstall does not remove every data

Due to object caching via memcached in some hosting like Pressable and others. If that's not cleared and just straight deleting the records from the table, it's not working since the get_option will pull results from memcache if present.

Shows error while the category is deleted from the list

Prerequisites

  • I have searched for similar issues in both open and closed tickets and cannot find a duplicate
  • The issue still exists against the latest master branch of RestaurantPress on Github
  • I have attempted to find the simplest possible steps to reproduce the issue

Steps to reproduce the issue

  1. Create a category. Add items to the category.
  2. Create a group.
  3. Group the created category into a group.
  4. Delete the created category.

Expected/actual behavior

The syntax error:
NOTICE: TRYING TO GET PROPERTY OF NON-OBJECT
while trying to diplay menu in the frontend.

I was expecting to see a blank space in place of category items instead.

Isolating the problem

  • This bug happens with only RestaurantPress plugin active
  • This bug happens with a default WordPress theme active, or FoodHunt
  • I can reproduce this bug consistently using the steps above

Database updater seems to have trouble while updating from 1.3.2 to 1.4.0

Upon updating plugin from 1.3.2 to 1.4.0 , Run database updater is presented as notice.
Once it is clicked, your database is being updated notice doesn't seem to go away and the process of data transfer also doesn't seem to execute.
edit menu item wp sandbox wordpress

The price data doesn't seem to transfer as it should have been.

Theming: Single food page for non-supported themes

If the theme does not support RestaurantPress we should:

  • Avoid our own single template and wrappers
  • Try to make use of theme's single.php template
  • Ensure non-related parts are removed if possible
  • Filter page titles to display relevant text/what is being shown.
  • Filter content to show food data.

Update/move settings to customizer

Move the color settings and image size/grid settings into the customiser with a functionality to regenerate food images on the fly as they are requested or do it when settings are changed in the background.

All functionality should be disabled via filters.

The on-the-fly regeneration should not make use of wp_generate_attachment_metadata as that is slow due to it trying to re-generate all attachment sizes for the specific image, it does however still make use of wp specific functionality to generate and save the images.

The background processing job utilises wp_generate_attachment_metadata as that can run in the background.

Displays error while displaying single menu item

Prerequisites

  • I have searched for similar issues in both open and closed tickets and cannot find a duplicate
  • The issue still exists against the latest master branch of RestaurantPress on Github
  • I have attempted to find the simplest possible steps to reproduce the issue

Steps to reproduce the issue

  1. Add a menu item
  2. Display the menu item as single
  3. There displays the error in debug log

count(): Parameter must be an array or an object that implements Countable

Expected/actual behavior

I am actually confused what it is meant to count?

Isolating the problem

  • This bug happens with only RestaurantPress plugin active
  • This bug happens with a default WordPress theme active, or FoodHunt
  • I can reproduce this bug consistently using the steps above

Theming: Improve how image sizes are defined by themes

Allows image sizes to be defined using add_theme_support. If used, image settings in RestaurantPress are hidden. Includes support for all default WP themes.

As we all know, changing image dimension settings in RestaurantPress requires the user to install and run Regenerate Thumbnails for those changes to take effect.

Currently, we do not make that process very user friendly. We link to the Regenerate Thumbnails plugin page on .org and then let the user figure things out for themselves.

Let's install the plugin inline, in one click. Then, if they change the settings, alert them to regenerate the thumbnails.

Adding categories to grouping data is not saved

When Adding category to Grouping, It could not saved the data. Currently the values are saved using term slug when localized this issue occurs. Instead we have to save the values using term ID.

Two Column Layout Does Displays as Single Narrow Column

Prerequisites

  • I have searched for similar issues in both open and closed tickets and cannot find a duplicate
  • The issue still exists against the latest master branch of RestaurantPress on Github
  • I have attempted to find the simplest possible steps to reproduce the issue
  • I have included a failing test as a pull request (Optional)

Steps to reproduce the issue

  1. Create new grouping with Two-Column layout
  2. Add menu items
  3. Embed into a page with the Blank Page template using a shortcode (e.g. [restaurantpress_menu id="285" orderby="menu_order" order="ASC"])
  4. Visit page and see one narrow column.

Expected/actual behavior

When I follow those steps, I see one narrow column (with a width of 48%)

I was expecting to see two columns (updating CSS to use a width of 45% causes the expected behavior).

Isolating the problem

  • This bug happens with only RestaurantPress plugin active
  • This bug happens with a default WordPress theme active, or FoodHunt
  • I can reproduce this bug consistently using the steps above

Undefined function call

Inside archive-food.php template there is a function call restaurantpress_page_title which doesn't seem to exist, hence an error is being thrown.

Mailer class integration

Implements the mailer class for sending notifation emails.

Currently useful for Table reservation addon :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.