Skip to content

PraveenPerfeito/Swirepay-Restaurent

Repository files navigation

Swirepay Restaurant Manager

A standalone WooCommerce plugin for Swirepay's demo environment.

Description

This plugin provides a comprehensive solution for restaurant management within a WooCommerce environment. It includes features such as table reservations, menu modifiers, time-based menus, and seamless integration with Swirepay for payment processing.

Features

  • Table Reservations: Allow customers to book tables directly from the website.
  • Menu Modifiers: Customize menu items with single or multi-select options.
  • Time-Based Menus: Automatically switch between different menus (e.g., breakfast, lunch, dinner) based on the time of day.
  • Tipping Support: Enable customers to add a tip to their order during checkout.
  • Delivery/Takeout Toggle: Let customers choose between delivery and takeout options.
  • Swirepay Integration: Process payments securely through Swirepay's API.

Requirements

  • WordPress 5.0 or higher
  • WooCommerce 7.0 or higher
  • PHP 8.0 or higher

Installation

  1. Download the plugin ZIP file (swirepay-restaurant-manager.zip).
  2. Log in to your WordPress admin area and navigate to Plugins > Add New.
  3. Click on the Upload Plugin button and select the downloaded ZIP file.
  4. Activate the plugin through the Plugins menu in WordPress.
  5. Configure the plugin settings by navigating to WooCommerce > Settings > Swirepay Restaurant.

Setup

Tables

  1. Go to Tables > Add New to create a new table.
  2. Enter a title for the table (e.g., "Table 1").
  3. Enter the capacity of the table in the Table Data meta box.
  4. Set the status of the table to "Available" or "Unavailable".
  5. Click Publish.

Reservations

  1. Create a new page and add the [srm_reservation_form] shortcode to it.
  2. Customers can now make reservations from this page.
  3. You can view and manage reservations from the Reservations menu in the WordPress admin.

Menus

  1. Go to Products > Menus to create a new menu.
  2. Enter a name for the menu (e.g., "Breakfast").
  3. Set the start and end times for the menu.
  4. Go to a product and assign it to the menu.

Modifiers

  1. Create Modifier Groups:

    • Go to Products > Modifier Groups.
    • Enter a name for the group (e.g., "Spice Level", "Add-ons").
    • Click Add New Modifier Group.
  2. Create Modifiers:

    • Go to Tables > Modifiers.
    • Click Add New.
    • Enter a name for the modifier (e.g., "Mild", "Medium", "Hot").
    • Enter a price for the modifier in the Modifier Data meta box (optional).
    • Select a Modifier Group for the modifier.
    • Click Publish.
  3. Associate Modifier Groups with Products:

    • Go to a product and edit it.
    • In the Product Modifiers meta box, select the modifier groups that you want to associate with the product.
    • Click Update.

Swirepay

  1. Go to WooCommerce > Settings > Payments.
  2. Enable the Swirepay payment method.
  3. Enter your Swirepay API key and secret.
  4. Click Save changes.

Sample Data

You can import the sample data by going to Tools > Import and selecting the WordPress importer. Upload the sample-data.xml file to import the sample tables, menus, modifiers, and products.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published