Work

Character Cafe

PHP
MySQL
WAMP

Online cafe web application allowing users to view the menu and order food and beverages via a checkout process. A separate login portal enables managers to add, modify, and remove items.

Character cafe menu

This cafe offers food that appears in video games, using the real-life versions of those recipes. Inspiration was drawn from Capcom Cafe, a small Capcom-themed character cafe located in Tokyo.

Character cafes are popular types of themed cafes that collaborate with popular characters, games, anime, movies, etc. These cafes usually offer limited edition food and drinks. Some are permanent cafes with fixed themes, while others are pop-up cafes or have changing themes. The first iteration of this character cafe focused on Genshin Impact, a video game developed and published by miHoYo.

In the game, food are consumable items used to heal characters, revive characters, buff the player’s character, or buff the entire party. Due to the game’s popularity, there are many real-life dishes that have already been made by fans of the game.

Services and instructions:

Customers can view the menu on the site without an account, but they must have an account and be logged in to order food.

customer login info: 
    - username: test
    - password: test

Managers must log in using a different account through a separate login portal, which takes them to an internal page where they can then add, modify, and remove food items, as well as view the all of the food items order details available in the database.

manager login info: 
    - username: test
    - password: test

Once you log in as a manager, a dashboard will be displayed instead of the cart in the navbar. Managers are still able to view the home, menu, and merch pages. Example: Instructions to add a food item (managers will be redirected to the menu page upon sucessful entry to see results)

name: Wolfhook Juice
description: A freshly squeezed, fashionable, and fruity non-alcoholic beverage.
price: 7.00
image path: images/food/Wolfhook_Juice
available: yes

Uncompleted features and closing thoughts:

Merchandise Ordering:

  • While the website was originally intended to be an online store exclusively for merchandise, I decided on a food ordering service to showcase the amazing real-life creations of the in-game food and held off on the merch store.

Account page:

  • Planned to implement a customer account page where users can save their favorite food items and edit reservations.

Bootstrap modal login form to show a pop-up login form when logging in from the navbar:

  • Using AJAX to submit and handle the data. The ability to update data without reloading the page would have allowed a pop-up menu that would open up in index.php and send data to a separate authentication page to validate inputs. It would also have removed the need for two separate “action” pages for the Add Food and Remove Food options for managers.

Although I added the ability to remove food items from the menu, I didn’t add the option to add it back in. I would need to add something to the Remove Food or Edit Food pages to allow for this.

Website design inspirations:

Escaping quotations marks in PHP for sticky form inputs:

If inputting a name with an apostrophe using the following code, the apostrophe and everything after it would not be shown because the quotation mark in the php code interfered and closed the input using the apostrophe from the name as the ending single quotation mark.

<?php if(isset($fullname)) echo "value='$fullname'"; ?> 

Resolved issue by using the following code instead:

value="<?php if(isset($fullname)) echo $fullname; ?>"

View GitHub Repository: Character Cafe