Discount setup
Discount Configuration for ReDi Restaurant Reservation plugin
Install the Discount plugin addon.
The plugin is provided as a Zip file. Upload it and activate the plugin.
Setup Discounts
Install additional plugin
Custom Post Type Maker Plugin needs to be installed Custom Post Type Maker and activated.
Create a new custom post type
A new custom type ‘discount’ must be created.
Name: Discount
Custom Post Type Name: discount
Label: Discount
In Visibility choose Public: false.
Make sure that in support list field of the Custom Fields is checked [x].
Once done, an additional menu should be available to manage discounts.
Create new discounts
To Create a new Discount press ‘Add New’ and fill the title
Fill custom fields
Enable custom fields in WordPress view
Click on preferences from right side 3dots menu
Enable custom fields
Define discount custom fields
Custom fields should be filled according to table below
Field name | Required | Description |
---|---|---|
discount | Yes | Discount text. It can be text or HTML code. |
class | No | CSS style to apply to the time button with discount |
weight | No | If there are multiple discounts found at the same time it will be taken to decide which one to apply. |
date | No | Specific day with discounts |
time | No | Specific time of discount |
dayofweek | No | Specific day if the week for discount |
month | No | Specific month of discount. Month filed can be single or multiple, separated with ',' |
place_id | No | Restaurant where discounts are applicable. Can be separated with ',' |
Custom field formats
| Date | Time | Dayofweek | Month |
---|---|---|---|---|
Format | DD.MM.YYYY | HH:MM | sunday | January February March April May June July August September October November December |
Example | 31.12.2020 | 12:30 | monday | May, August |
And Press ‘Publish’.
Test plugin
Select desired data and you should see Discount % on available time Discount % is added to the Comments field for reservation.
Example with discount provided as HTML code
<span style="color:red">Free Beer</span>
<img src="https://cdn-icons-png.flaticon.com/512/988/988934.png" alt="Icon" width="100" height="100">