WooCommerce Customization: Definitions CustomizeWoo.com
WooCommerce (“WC”, “Woo”) ● Launched in 2011 ● “Develop WooCommerce” dev blog woocommerce.wordpress.com ● docs.woocommerce.com ● github.com/woocommerce CustomizeWoo.com
PHP (“Hypertext Preprocessor”) ● Programming language .php ● HTML vs PHP: PHP executes a calculation on the server, and then the result is returned as HTML ● E.g. <p><?php echo date(“Y”); ?></p> CustomizeWoo.com
CSS (“Cascading Style Sheets”) ● Style sheet language that defines HTML formatting (style.css) ● “Selector” (id, class, tag) ● “Declaration” (“property”: “value”) ● E.g. h1 { color: red; } CustomizeWoo.com
Snippet ● Piece of PHP code that adds a specific functionality to WP/WC ● It’s a mini-plugin! ● Goes into child theme’s functions.php CustomizeWoo.com
Staging ● Service that should be offered by your hosting company ● 1-click cloning and 1-click pushing ● Used to test updates, new plugins, themes, snippets, troubleshooting CustomizeWoo.com
Backup ● Made of 2 files: .ZIP (WordPress files) + .SQL (Database “DB”) ● 1-click restore via hosting ● Should be stored somewhere different than your own server CustomizeWoo.com
WordPress / WC “Hook” ● Provided to allow your snippets to “hook into” WP/WC i.e. call functions at specific times/places without overriding core files ● Actions vs Filters (add / edit) CustomizeWoo.com
Text/code editor ● Software used to code (PHP, CSS, etc) ● Find/replace, syntax highlighting, undo/redo, auto backup ● NotePad++, Atom, Sublime, Visual Studio Code CustomizeWoo.com
FTP ● “File Transfer Protocol” ● Software to transfer files between your computer and your server e.g. download style.css, customize it, upload it back to the server CustomizeWoo.com
phpMyAdmin ● Access your WP DB online ● Import / export / bulk update / bulk delete / backup / clean / search & replace ● Very delicate. Advanced only CustomizeWoo.com
Troubleshooting ● Trying to understand why WooCommerce is not running / freezes / displays weirdly / takes you to error pages (404/500) ● WC “Status” @ WP dashboard CustomizeWoo.com
Error 500 ● Site is “broken” ● There is a PHP Fatal Error. A simple missing “,” can break your site ● WP_DEBUG to the rescue CustomizeWoo.com
Changelog ● Record of notable changes in WC software ● Know the difference: 3.5.2 > 3.5.3 vs 3.5.2 > 3.6.0 vs 3.5.2 > 4.0.0 CustomizeWoo.com
“Deprecated” ● Function that is replaced by another, hence becomes obsolete ● WC deprecates functions @ each update ● Snippets / plugins should adapt CustomizeWoo.com

WooCommerce: Customization Definitions

  • 1.
  • 2.
    WooCommerce (“WC”, “Woo”) ●Launched in 2011 ● “Develop WooCommerce” dev blog woocommerce.wordpress.com ● docs.woocommerce.com ● github.com/woocommerce CustomizeWoo.com
  • 3.
    PHP (“Hypertext Preprocessor”) ●Programming language .php ● HTML vs PHP: PHP executes a calculation on the server, and then the result is returned as HTML ● E.g. <p><?php echo date(“Y”); ?></p> CustomizeWoo.com
  • 4.
    CSS (“Cascading StyleSheets”) ● Style sheet language that defines HTML formatting (style.css) ● “Selector” (id, class, tag) ● “Declaration” (“property”: “value”) ● E.g. h1 { color: red; } CustomizeWoo.com
  • 5.
    Snippet ● Piece ofPHP code that adds a specific functionality to WP/WC ● It’s a mini-plugin! ● Goes into child theme’s functions.php CustomizeWoo.com
  • 6.
    Staging ● Service thatshould be offered by your hosting company ● 1-click cloning and 1-click pushing ● Used to test updates, new plugins, themes, snippets, troubleshooting CustomizeWoo.com
  • 7.
    Backup ● Made of2 files: .ZIP (WordPress files) + .SQL (Database “DB”) ● 1-click restore via hosting ● Should be stored somewhere different than your own server CustomizeWoo.com
  • 8.
    WordPress / WC“Hook” ● Provided to allow your snippets to “hook into” WP/WC i.e. call functions at specific times/places without overriding core files ● Actions vs Filters (add / edit) CustomizeWoo.com
  • 9.
    Text/code editor ● Softwareused to code (PHP, CSS, etc) ● Find/replace, syntax highlighting, undo/redo, auto backup ● NotePad++, Atom, Sublime, Visual Studio Code CustomizeWoo.com
  • 10.
    FTP ● “File TransferProtocol” ● Software to transfer files between your computer and your server e.g. download style.css, customize it, upload it back to the server CustomizeWoo.com
  • 11.
    phpMyAdmin ● Access yourWP DB online ● Import / export / bulk update / bulk delete / backup / clean / search & replace ● Very delicate. Advanced only CustomizeWoo.com
  • 12.
    Troubleshooting ● Trying tounderstand why WooCommerce is not running / freezes / displays weirdly / takes you to error pages (404/500) ● WC “Status” @ WP dashboard CustomizeWoo.com
  • 13.
    Error 500 ● Siteis “broken” ● There is a PHP Fatal Error. A simple missing “,” can break your site ● WP_DEBUG to the rescue CustomizeWoo.com
  • 14.
    Changelog ● Record ofnotable changes in WC software ● Know the difference: 3.5.2 > 3.5.3 vs 3.5.2 > 3.6.0 vs 3.5.2 > 4.0.0 CustomizeWoo.com
  • 15.
    “Deprecated” ● Function thatis replaced by another, hence becomes obsolete ● WC deprecates functions @ each update ● Snippets / plugins should adapt CustomizeWoo.com