Shortcodes make your work easier as using this one word you can get the functionality of a page.
To display the food items on your Food Item page, use:
[fooditems]
You need to place it in the description section on your food item page.
To design the Checkout page, use:
[fooditem_checkout]
You need to place the shortcode on your Checkout page in your admin dashboard.
To design the Order Confirmation page, use:
[rpress_receipt]
You need to place this shortcode on your Purchase/Order Confirmation page.
To display the data of Order History, use:
[order_history]
You need to place this shortcode on your Order History page.
To add a Login page for the customer on your website, use:
[rpress_register]
You need to place this shortcode on your register page that you have created in pages, in your admin dashboard.
To display Cart on your website, use:
[fooditem_cart]
You need to place this shortcode on the cart page that is created in the pages in your admin dashboard. It also creates a cart page that allows you to display the cart contents on that page.
Other Important shortcodes for Food Items
To Reorder your Food Category, use:
category( category ids or slug separated by comma(,) )
Examples:
[fooditems category=”starter,snacks,lunch”]
The above shortcode should display the category sidebar with the mentioned categories and the products would only be displayed from those mentioned categories. It will also reorder your categories.
You need to place this shortcode on your food items page replacing the existing food item shortcode.
To display the Child Category of Main Category, use:
category_menu(this will show only the child category of the specified category)
Examples:
[fooditems category_menu=”lunch”]
The above shortcode will only display the child categories of lunch on the category sidebar and also display the food items from the child category of lunch.
To display the category in your desired order, use:
cat_orderby( Ordering for category )
You can sort the order by id, title, name.
Examples:
cat_orderby(title)
To display the food items inside the category in your desired order, use:
fooditem_orderby ( ordering of food items inside the category )
You can sort the order by id, title, name.
Examples:
[fooditems fooditem_orderby="title"]
To display the category order in ascending or descending order, use:
cat_order: asc/desc
Examples:
[category category_order= “asc”]
[category category_order= “desc”]
To display the food items ordered in ascending or descending order, use:
fooditem_order: asc/desc
Examples:
[fooditems fooditem_order= “asc”]
[fooditems fooditem_order= “desc”]
Place this shortcode on food item page replacing food item shortcode.