| 开发者 |
wpexpertshub
jodhavishalsingh |
|---|---|
| 更新时间 | 2026年9月29日 12:15 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv3 |
| 版权网址: | 版权信息 |
[wxp_restaurant].
Perfect for restaurants, cafés, takeaways, pizzerias, bakeries, food trucks and cloud kitchens that take orders for delivery or collection.
The menu
[wxp_restaurant] - all product categories that have published products.[wxp_restaurant categories="starters,mains,drinks"] - only these category slugs, in this order.[wxp_restaurant] to a page (Shortcode block) and publish it.Edit the product and tick "Is Non-Vegetarian" next to the product type. All other dishes show the vegetarian mark.
The menu uses the normal WooCommerce checkout, so customers can pay with any payment method you have enabled, including Cash on delivery. Use WooCommerce shipping methods for delivery and "Local pickup" for collection. Choosing a delivery day and time slot is a Pro feature.
Yes: [wxp_restaurant categories="starters,mains,drinks"] shows only these category slugs, in this order. You can put different menus on different pages.
Categories follow the order under Products > Categories (child categories right after their parent) and dishes follow the order under Products > Sorting. Dishes in a child category are listed in that category's own section.
Only published products that are visible in the catalog are listed, and a category is shown when it has at least one of them. With "Hide out of stock items" enabled in WooCommerce, out-of-stock dishes are hidden too.
The menu is designed to work with any theme and adapts to the width of your content area. It has been tested with Storefront and with the Twenty Twenty-Five block theme.
Yes. If a cached page carries an expired security token, the menu gets a fresh one and retries automatically.
Yes. Add CSS in Appearance > Customize > Additional CSS (or Appearance > Editor > Styles > Additional CSS with a block theme), for example .wxp-root { --wxp-accent: #0f766e; --wxp-accent-hover: #115e59; --wxp-accent-soft: #e6f4f2; }.
Raise it with body { --wxp-basket-lift: 60px; } (the height of the bar). Storefront's handheld footer bar is handled automatically.
Copy templates/menu.php or templates/basket.php from the plugin folder to your-theme/restaurant-for-woocommerce/ and edit the copy.
When the Pro version is active this plugin stays inactive, so you can deactivate and delete it. The shortcode is the same.
See WooCommerce > Restaurant in your dashboard, or open a topic in the support forum.