Upgrade to Pro — share decks privately, control downloads, hide ads and more …

WooCommerce Theme Development Workshop

Zac Gordon
April 08, 2016

WooCommerce Theme Development Workshop

For WooConf 2016 - Austin

Zac Gordon

April 08, 2016
Tweet

More Decks by Zac Gordon

Other Decks in Technology

Transcript

  1. What We Will Cover - Add WC Theme Support -

    WC Template Hierarchy - Overriding Templates - Updating Templates - Template Functions - Theme Hooks
  2. Recommended Prereqs For WC Theme Developers - Ability to setup

    and use WC - Child Themes - WP Template Hierarchy - WP Hooks - HTML, CSS, JS, PHP
  3. About This Workshop And My Interest in It - Based

    on Treehouse Course - Released for WooConf 2015 - Why I Love Woo!
  4. Overriding Templates https://docs.woothemes.com/document/template-structure/ - Works just like Child Themes -

    Create a “woocommerce” folder in your theme folder - Copy over only the files you need - Keep the same structure as the plugin “template” folder
  5. Practice: Let’s Explore! Explore the functionality and source code of

    the different template functions available in WC.
  6. WC Hooks: Actions & Filters https://docs.woothemes.com/document/introduction-to-hooks-actions-and-filters/ https://docs.woothemes.com/wc-apidocs/hook-docs.html - Preferred way

    for many modifications - Actions let us add code - Filters let us modify content - functions.php - Wc-template-hooks.php - Query Monitor / Hookr.io - Find Where
  7. Practice: Hooking it Up Practice using actions and filters to

    move around and modify code. Suggestion - try the Cart & Checkout
  8. Learn More Take the course for free!!! - wp.zacgordon.com -

    Look for WP Courses - WC Theme Development - Sign Up through Treehouse