Author: super_admin_v3x

Order Info

Order Info Display list of delivery settings and/or discount settings (ul/li elements)   type=’orderinfo’ required string   width=’250px’ optional [int]% | [int]px Set width of element class=’some-class’ optional valid class name Add your own class name to the widget container info=’discounts, deliveries’ optional discounts|deliveries Show 

Openingtimes

Openingtimes Display Openingtimes as set in WPPizza -> Openingtimes. Note: Only standard opening times will be displayed. If you are using closing hours and/or custom days, you are probably better off displaying your openingtimes in another way (arbitrary text in a textwidget for example)   

Pickup Choices

Pickup Choices
Display the option to choose between pickup and delivery. Pickup option must be enabled in “Wppizza -> Order Settings -> Pickup : Allow order pickup by customer” for this to do anything.
 
type=’pickup_choices’ required string  
toggle=’1′ optional omit|0|1 omit -> default set in setting, 0 -> checkboxs, 1 -> radio input toggle
class=’some-class’ optional valid class name Add your own class name to the widget container
Examples
 
[wppizza type='pickup_choices']
– Display the widget/option according to settings in Wppizza -> Order Settings.
[wppizza type='pickup_choices' toggle='1' class='some-class']
– Display the widget/option according to settings in Wppizza -> Order Settings, using/forcing radio toggle and adding “some-class” to element.

Navigation

Navigation Display WPPizza Catgory Navigation. Only categories with active menu items will be displayed in hierarchical order set in WPPizza->Categories. Please note: This widget/shortcode is only really useful if using install option 2 !!! Please note: This is only really useful if using install option 

Search

Search NOTE: If using a search widget/shortcode that includes wppizza menu items, you should set up a single.php template single item template   type=’search’ required string   include=’wppizza’ optional wppizza,post,page (comma separated) What to include in search results (WPPizza menu items, WP posts, WP pages) 

Pages

Overview – click on the links to view all available attributes

Pages
Type Example Description
 
Orderpage [wppizza type=’orderpage’] Display Orderpage
User Orderhistory [wppizza type=’orderhistory’] User Orderhistory

Orderpage

Orderpage / Checkoutpage Display the checkout page formfields   type=’orderpage’ required string   Examples   [wppizza type=’orderpage’] – displays orderpage. Enable formfields and options as required in “WPPizza -> Orderform Settings”. The page containing this shortcode should also be set in “WPPizza -> Order Settings 

User Orderhistory

Users Orderhistory Display previous orders of user Note: The user must be a registered user. Registration (WP->Settings->anyone can register) must be enabled for this to be of any use type=’orderhistory’ required string   maxpp=’10’ optional omit| integer Maximum number of orders per page (default = 

Admin Orderhistory

Admin Orderhistory (requires WPPizza v3.5+)
A compact view – basic actions – of the admin order history that can be used on any frontend page. Orders will be polled based on settings in “WPPizza->Order Settings->Order History->Polling Time”. Number of orders per page are determined by “WPPizza->Order Settings->Order History->Max Results Per Page”

Note: To view the order history, a user has to be logged in and have “Order History” permissions set in “Wppizza->Access Rights”, unless the “unprotected” attribute in the shortcode is set (not recommended).
type=’admin_orderhistory’ required string Note: the shortcode must start with [wppizza_admin
name=’cname’ optional string Comma separated string of formfield id’s that are used to enter a customers name (hover your cursor over the “Enabled” icon in “Wppizza->Order Form” for id’s). Defaults to “cname”
address=’caddress’ optional string Comma separated string of formfield id’s that are used to enter a customers address (hover your cursor over the “Enabled” icon in “Wppizza->Order Form” for id’s). Defaults to “caddress”.
If using the “Delivery By Postcode” plugin, you can also use “wppizza-dbp-map-location” (if using google maps option there) or “wppizza-dbp-area” (if not using google maps)
no_pagination=’1′ optional bool Set to 1 to not show any pagination (Default: 0 )
print_view=’1′ optional bool Set to 1 to automatically try and open the print dialogue when clicking on the “view order” icon – if supported by your browser (Default: 0)
delete_order=’1′ optional bool Set to 1 to add “delete order” button – user must be logged in and has “delete order” privileges (Default: 0)
unprotected=’1′ optional bool Set to 1 to not ask for any login credentials when accessing the page – not recommended (Default: 0)
Examples
 
[wppizza_admin type='admin_orderhistory' name='cname, cemail' address='caddress, ccustom1']
– display the orders using the ‘cname, cemail’ formfield inputs to display the name, ‘caddress, ccustom1’ formfield inputs to show the address(with link to google map search).
– Pagination will be shown (if applicable).
– “View Order” button will open popup will full order details.
– If the user is not logged in yet, a login form will be shown instead.
– If the supplied credentials do not have “Order History” capabilities, an error will be displayed.
– If in a multisite environment and all orders from all blogs are set to be shown in the parent blog, this will be the case here too.

If you are using the “Delivery By Post/Zipcode” plugin, and depending on your settings in the plugin, the following address attributes are additionally availablewppizza-dbp-map-location (if using maps), wppizza-dbp-area-is (if using autocomplete textboxes), wppizza-dbp-area (if using regular/default dropdowns

[wppizza_admin type='admin_orderhistory' name='cname, cemail' address='caddress, ccustom1' no_pagination='1']
– as above, but omitting pagination
[wppizza_admin type='admin_orderhistory' name='cname, cemail' address='caddress, ccustom1' print_view='1' delete_order='1']
– as above, but clicking on the “view order” icon will try launch it in print view (if your browser supports it)
– additionally a “delete order” button will be added (user must be logged in and has “delete order” privileges)
[wppizza_admin type='admin_orderhistory' name='cname, cemail' address='caddress, ccustom1' unprotected='1']
– as above, but no login credentials will be required (If you do this, it is entirely your responsibility to protect this page from public access)

Installation

Download the plugin, unzip, and upload the entire wppizza folder to your /wp-content/plugins/ directory. Alternatively you can download and install WPPizza using the built in WordPress plugin installer (Login into wordpress -> goto “plugins” -> “add new” (at the top of the page) ->”upload plugin”