Things to do on first install

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #3399
    Olly
    Admin & Mod

      although some defaults will be installed and set when first installing this plugin, you will have to configure some things to make it play nicely in your theme
      Note: you might want to start with Option 1 first, as you can always use Option 2 later

      =====Option 1 – using normal pages=====

      easier to setup initially, but perhaps more labour intensive to maintain in the long run; especially if your categories change frequently

      to get you started quickly and to help you decide if you like this plugin, the following defaults are being created on first install:

      • some default categories
      • some default menu items per category
      • pages that display the items in any given category (including the required shortcode)
      • an order page to send any orders to you via email (including the required shortcode)
      • a default list of additives that a menu item might have
      • a selection of available meal sizes
      • as well as default opening times, order settings etc.

      now make sure to display the shoppincart somewhere on those pages (typically in a sidebar) using the wppizza widget (using type:cart) or use the following shortcode: [wppizza type='cart']

      to be able to add items to your shopping cart ALL pages that display your menu items must have the shopping cart displayed somewhere using the widget or shortcode [wppizza type=cart] .
      However, you will most likely NOT want to display the shopping cart on the final order page. If your theme does not allow to adjust this – via templates for example – use one of the many WP plugins available that lets you choose which widget to display on which page

      • if the cart displays “currently closed” adjust your opening times in wppizza->settings->openingtimes (and make sure your timezone settings are correct)
      • make sure the navigation to those pages gets displayed somewhere (this will normally already be the case – usually by some pagelist or menu ).

      that should be it……

      please make sure to re-check the following

      • Order Page: Ensure a/your order page – as set in “wppizza->order settings” actually/still exists and has the following shortcode on it [wppizza type="orderpage"] (or use the equivalent widget if that works in your scenario).
      • Shoppingcart: as mentioned above, make sure all pages with menu items have a shoppingcart displayed somewhere.
      • Caching: do NOT EVER cache the order page. If you are using a caching plugin also read here
      • Navigation widget: you should NOT be using this widget if using pages to display your menu items. It is really only useful if using option 2 below . Please read here .
      • Using WP->Appearance->Menus for navigation:

        DO use/select from the “Pages” selection you have created and that have the relevant WPPIZZA shortcode on them which displays the menu items for a given category to add to the navigation
        you do NOT want to add from the selection of “WPPIZZA Categories” to the navigation menu. These are only useful if using option 2 below.

      • NOTE: some themes (custom community for example) require that you distinctly save the automatically inserted pages again (i.e “order page”, etc) to generate the right markup and display correctly. So if the layout is messed up on initial install, try to just save those pages once and see if that fixes things.

       

       

      ============Option 2 – using templates=========

       

      • copy your themes ‘page.php’ file as ‘wppizza-wrapper.php’ into your theme directory(if your theme does not have a page.php file, look for archive.php or even index.php)
      • open /wppizza/templates/wppizza-wrapper.php and copy everything between [copy from here …..] to [………..copy to here]
      • place this snippet in the ‘wppizza-wrapper.php’ file we created above in your theme directory, REPLACING the original loop (including the while ( have_posts() ) : the_post(); or similar part)
      • display the navigation by either using the widget (type:navigation) or a shortcode [wppizza type='navigation']
      • ensure you still have an order page that includes the following shortcode [wppizza type='orderpage'] and wppizza->settings->order settings: ‘order page’ is set to use this page (you might have to re-save your permalink settings)
      • ensure – as outlined in Option 1 – that you are displaying your shopping cart
      • if you wish , you can now delete all wppizza default pages EXCEPT THE ORDER PAGE. However,if using permalinks, you might want to keep the parent page (default: Our Menu) and set the permalinks in wppizza->settings to this page. If you do, make sure to update permalinks structure once.

      Now you do not have to maintain any wppizza category pages, or navigation when adding new categories or menu items to wppizza as it’s all taken care of automagically.

      PS: you might have to adjust the css to work within your theme.
      see FAQ: “Can I edit the css ?” for details

    Viewing 1 post (of 1 total)
    • The topic ‘Things to do on first install’ is closed to new replies.