How viniciuslimaan/onlinemenu works
Online Menu is a static restaurant menu and ordering interface. Customers browse categorized products or promotions, add items to a browser-persisted cart, adjust quantities and delivery or discount choices, then generate an order message. The README describes WhatsApp forwarding as the intended result, but says forwarding is not configured; the current checkout displays the message in an alert. Source excerpts show the JavaScript behavior, but not the HTML script wiring, so page-to-script relationships are omitted.
Main entry points: shoppingCart.js Cart Checkout · cart.js Cart Actions · menu.js Menu Browsing · products.js Product Catalog
Components 14
Menu and Catalog
- Menu Browsing
js/menu.js - Product Catalog
js/products.js
Cart and Checkout
- Cart Actions
js/cart.js - Browser Cart
- Cart Checkout
js/shoppingCart.js - Order Message
js/shoppingCart.js
Web Interface
- Menu Page
index.html - Cart Page
view/cart.html - Mobile Navigation
js/navbar.js - Menu Styling
css/style.scss - Cart Styling
css/cart.scss
Other components
- Customer
- Toastify
Connections 12
- Customer → Menu Page: browses
README.md - Customer → Cart Page: checks out
README.md - Menu Browsing → Product Catalog: filters and renders
js/menu.js - Menu Browsing → Cart Actions: adds products
js/menu.js - Cart Actions → Browser Cart: reads and writes
js/cart.js - Cart Actions → Toastify: shows notification
js/cart.js - Cart Checkout → Browser Cart: reads and writes
js/shoppingCart.js - Cart Checkout → Product Catalog: looks up products
js/shoppingCart.js - Cart Checkout → Toastify: shows notifications
js/shoppingCart.js - Customer → Cart Checkout: chooses options
js/shoppingCart.js - Cart Checkout → Order Message: builds and displays
js/shoppingCart.js - Order Message → WhatsApp: forwarding planned
README.md