Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

WooCommerce: Plugin Files & Folders


Published on

These slides belong to, a technical video course that shows you how to override WooCommerce pages and elements without using plugins. You can watch me code and learn by example.

A series of videos, screencasts, examples and exercises will help you feel more confident about WooCommerce customization, child themes, hooks and CSS/PHP snippets.

Watch and re-watch each video how many times you like, get lifetime access to me via the comment section, exercise as much as possible and keep learning.

Access your free videos or buy the course via

Published in: Internet
  • Be the first to comment

  • Be the first to like this

WooCommerce: Plugin Files & Folders

  1. 1. Getting Ready: Plugin files & Folders
  2. 2. If You Want to Customize Woo... You need to download the WooCommerce plugin on your PC and learn its structure and files.
  3. 3.
  4. 4. Unzip WooCommerce: root
  5. 5. WooCommerce Plugin Root ● ../assets ● ../i18n ● ../includes ● ../sample-data ● ../templates ● licence.txt (GPL) ● readme.txt (plugin) ● uninstall.php ● woocommerce.php (class & globals)
  6. 6. WooCommerce Plugin: ../assets ● ../css e.g. woocommerce.css ● ../fonts e.g. star.ttf ● ../images e.g. placeholder.png ● ../js e.g. cart.js
  7. 7. WooCommerce Plugin: ../i18n ● woocommerce.pot file ( woocommerce-localization) ● Continents / Country / State codes ● Locale info e.g. US weight_unit = oz ● Phone prefixes
  8. 8. WooCommerce Plugin: ../includes ● Backend & frontend functions e.g.: ○ class-wc-admin-duplicate-product.php ○ class-wc-email-new-order.php ○ class-wc-shipping-flat-rate.php ○ class-wc-cart.php ○ wc-template-functions.php ○ ...
  9. 9. WooCommerce Plugin: ../sample-data ● CSV and XML files for importing sample products or taxes
  10. 10. WooCommerce Plugin: ../templates ● ../cart ● ../checkout ● ../emails ● ../global ● ../loop ● ../myaccount ● ../single-product ● archive-product.php ○ content-product.p hp ● single-product.php ○ content-single-pr oduct.php
  11. 11. WooCommerce Plugin: ../templates ● According to WC, you can copy any /templates file to the /woocommerce folder of your child theme to override behavior e.g. cart.php ● This is not ideal. CustomizeWoo teaches you to override properly
  12. 12. WooCommerce Plugin: ../templates ● To override properly, you need to study the anatomy of template files ● i.e. how is WooCommerce frontend generated, from which files? ● i.e. do these files provide “hooks” (do_action(), apply_filters())?
  13. 13. WooCommerce Plugin: ../templates ● Thankfully WooCommerce is well coded > plenty of hooks ● 99% template customization can be done via functions.php (not the /woocommerce folder)