carinderia website

Presyo Menu Board: A Free WordPress Menu Plugin With One-Click Sold-Out Tags

Efraim Ray Efraim Ray 0 Comments
WordPress Plugin Showcase

Most carinderias, cafés and bakeries I see online post their menu as a photo of a tarpaulin. Prices change, the kaldereta runs out by one o'clock, and nobody can search a photo. I built Presyo Menu Board, a free WordPress plugin that turns the menu into a real, mobile-friendly price list the owner can update from a phone in a few taps.

Presyo is Filipino for price. The plugin shows peso prices the way people write them (₱85, ₱92.50, ₱1,250), handles sizes and promo prices, has a Today's Menu screen for marking dishes sold out, and prints schema.org Menu markup so search engines can read the dishes and prices.

Type WordPress Plugin
Backend PHP 7.4+ / WP 6.3+
Editor Block + Shortcode
Version v1.0.0
License Free · GPL-2.0+

Try It: Run Out of Something

This is a sample carinderia menu page. Tap a dish in the grey "Today's Menu" strip to mark it sold out, then try the section buttons and the search box.

kusinanililing.example/menu

Kusina ni LilingSample carinderia · Valencia City, Bukidnon

[presyo_menu]

Owner view · Today's Menu (tap to mark sold out)

Build Footprint & Quality Checks

Food businesses usually sit on cheap shared hosting and their customers browse on mobile data, so I kept the front end tiny. These are the measured numbers from the v1.0.0 build:

1.0
Front-end JS
KB gzipped
1.6
Front-end CSS
KB gzipped
0
External Requests
no jQuery, no CDN
52
Tests Passed
php -l: 10 files, 0 errors

Technology Stack & Languages

Platform

WordPress 6.3+ APIs

A private custom post type for dishes, a Sections taxonomy, registered post meta, the Settings API and a dynamic block from block.json.

Server Logic · 86% of the code

PHP 7.4+

Price parsing, peso formatting, sizes, the Today's Menu form handler and the HTML renderer, with nonces, capability checks and late escaping.

Front End · JS 9% · CSS 4%

Vanilla JavaScript & CSS

A 2.6 KB script for section filters and search, and a stylesheet that inherits the theme's fonts and works on light and dark themes.

SEO Layer · JSON

Schema.org Menu JSON-LD

Menu → MenuSection → MenuItem → Offer in PHP currency, with sold-out dishes marked OutOfStock.

Key Architectural Decisions

Pillar 01

One Pure Logic Class

All price and schema rules live in Presyo_Format, which has no WordPress calls and no output. That made it easy to test with plain PHP: 36 checks pass.

Pillar 02

Built for Lunch Rush

Owners don't open each dish to mark it sold out. Today's Menu lists every dish with Available / Sold out / Hidden and saves them all in one form.

Pillar 03

Sanitize In, Escape Out

Prices are parsed strictly, statuses and badges are whitelisted, forms use nonces and capability checks, and JSON-LD is encoded with JSON_HEX_TAG.

Pillar 04

No Build Step

The block editor UI is plain JavaScript against WordPress globals and PHP renders the block, so the zip installs as-is. CSS and JS load only where a menu appears.

Price Logic, Search & Shortcodes

Three real excerpts from the plugin: the PHP that reads and prints peso prices, the browser-side search rule, and how you place the menu on a page.

// includes/class-presyo-format.php
public static function sanitize_price( $raw ) {
    if ( is_int( $raw ) || is_float( $raw ) ) {
        $raw = (string) $raw;
    }
    if ( ! is_string( $raw ) ) {
        return '';
    }
    // Drop currency symbols, spaces and thousands separators.
    $clean = preg_replace( '/[^0-9.]/', '', $raw );
    if ( '' === $clean || ! preg_match( '/^\d+(\.\d{1,2})?$/', $clean ) ) {
        return '';
    }
    $value = (float) $clean;
    if ( $value < 0 || $value > self::MAX_PRICE ) {
        return '';
    }
    return number_format( $value, 2, '.', '' );
}

public static function format_price( $amount, $symbol = '₱', $decimals = 'auto' ) {
    $value = (float) $amount;
    if ( 'auto' === $decimals ) {
        $places = ( abs( $value - round( $value ) ) < 0.005 ) ? 0 : 2;
    } else {
        $places = ( 2 === (int) $decimals ) ? 2 : 0;
    }
    return $symbol . number_format( $value, $places, '.', ',' );
}
// assets/js/presyo-menu.js — runs in the visitor’s browser
function matches( itemText, section, filter, query ) {
    if ( filter !== 'all' && filter !== section ) {
        return false;
    }
    var words = String( query || '' ).toLowerCase().trim().split( /\s+/ ).filter( Boolean );
    return words.every( function ( w ) {
        return itemText.indexOf( w ) !== -1;
    } );
}
<!-- Whole menu, settings from Presyo Menu → Settings -->
[presyo_menu]

<!-- Two sections in the order you type, as photo cards -->
[presyo_menu sections="drinks,kakanin" layout="cards" columns="3"]

<!-- Block editor: add the "Presyo Menu Board" block (Widgets)
     and pick sections, layout, columns, filter and search -->

// Optional: change the schema.org Menu JSON-LD from your theme
add_filter( 'presyo_menu_schema', function ( $data ) {
    $data['inLanguage'] = 'fil';
    return $data;
} );

Development Roadmap & Milestones

Version 1.0.0 is released. The next milestones come straight from the project's roadmap:

1

v1.0.0: Core Plugin (Released)

Menu Items and Sections, peso prices with sizes and promos, Today's Menu screen, block and shortcode, filter and search, schema.org Menu JSON-LD and print styles.

2

Next: Ulam of the Day & REST API

Show dishes only on chosen weekdays, and a /wp-json/presyo/v1/menu endpoint so chatbots can answer "Ano'ng ulam ngayon?"

3

Planned: Table QR Codes

Generate a printable QR code for table tents and the counter that opens the menu page.

4

Planned: Order on Messenger

An optional button per dish that opens Messenger with the dish name already typed in.

User Interface & Feature Showcase

Presyo Menu › Today's Menu
Chicken InasalAvailableSold outHidden
Beef KalderetaAvailableSold outHidden
Buko JuiceAvailableSold outHidden
wp-admin

Today's Menu in One Screen

Every dish with three buttons and one Save, plus "Mark everything available" for the next morning.

Ulam
Chicken Inasal₱130 ₱120
Beef Kaldereta₱140
Sold out
Pork Sinigang · Good for 3₱260
Front End

A Price List People Can Read

Dotted leaders, promo prices, sizes and sold-out tags, in a list or card layout.

"@type": "Menu",
"hasMenuSection": [{
  "@type": "MenuSection", "name": "Ulam",
  "hasMenuItem": [{
    "@type": "MenuItem", "name": "Beef Kaldereta",
    "offers": { "price": "140.00", "priceCurrency": "PHP",
      "availability": "https://schema.org/OutOfStock" }
  }]
}]
Local SEO

Schema.org Menu Markup

Printed once in the footer from the same data, and filterable from your theme.

Project Links, Code & Documentation

Download the Plugin

Get presyo-menu-board.zip and install it in wp-admin under Plugins → Add New → Upload Plugin. Then open Presyo Menu → Sections.

Get v1.0.0

GitHub Repository

Browse the source, try the live demo, or open an issue. Free and open source under GPL-2.0-or-later.

View on GitHub

How It Was Built

A plain-language build log: the languages used, every step in order, the test results and the problems fixed along the way.

Read the Build Log
Engineering Takeaway

From Tarpaulin Photo to Real Menu

A menu page sounds simple until prices change weekly and dishes run out by lunch. Presyo Menu Board keeps it current in a few taps and makes it readable to customers, screen readers and search engines. Want it set up on your food business website, with your dishes and prices already in?

Frequently Asked Questions

Is Presyo Menu Board free to use?

Yes. It is free and open source under the GPL-2.0-or-later license, so you can use it on your own and your clients’ WordPress sites and change the code.

Does it work on Blogger, or only on WordPress?

It is a WordPress plugin, so it needs a WordPress site on any host that runs WordPress 6.3 or newer; it does not run on Blogger. To install it, upload presyo-menu-board.zip in Plugins → Add New → Upload Plugin and activate it.

What do I need to run it?

WordPress 6.3 or newer and PHP 7.4 or newer. You do not need to code to use it, and there is no build step, jQuery or extra library to install.

Does the plugin send my menu or my customers’ data anywhere?

No. Your menu is stored in your own WordPress database and the plugin makes no external requests. Searches and filters run in the visitor’s browser and are not saved.

How does it handle dishes that run out during the day?

Open Presyo Menu → Today’s Menu, tap Sold out next to the dish and save. The website shows it greyed out with a Sold out tag, or hides it if you switch that off in Settings, and the schema marks it OutOfStock. If your site uses a page cache, purge it after saving.

Can you set this up for my business website?

Yes. I can install and style Presyo Menu Board on your WordPress site, enter your menu and prices, and show your staff how to use the Today’s Menu screen. Contact me here.

Kusina ni Liling and its dishes and prices are fictional sample data. Search engines decide on their own whether to use menu markup, so the schema is not a guarantee of any search feature.

Efraim Ray
Written by

Efraim Ray

Software Developer and AI Specialist. BS Information Technology graduate. I pride myself on being conscientious, attentive to detail, and always open to learning — because the best solutions come from listening, taking notes, and exploring what's next.

Comments