Upload
rodolfo-melogli
View
4.858
Download
1
Embed Size (px)
Citation preview
How NOT to customize WooCommerceHow to add a PHP snippet to your website
How to use actions to avoid template overrides
Ask me anything @ end
Free Access to Slides & Recording
Yes!
Are you ready tolearn something useful?
...your GOAL:Take action & make/save $$$
...my GOAL:Teach you my tools/tricks/tips!
Not a dev
Not a coder
Yet, 600+ worldwide WooClients
Rodolfo Melogli @rmelogliWooCommerce Lover ~
Digital Marketer ~ Author
1. How NOT to customizeWooCommerce
Don’t edit your Theme; use a Child Theme
Don’t edit WC plugin files
Don’t use WP editor, use FTP :)
Don’t override templates, take advantage of do_action
1. Always create & use a child theme
2. Always work with FTP so you can backup & restore
How NOT to customize WooCommerceHow to add a PHP snippet to your website
How to use actions to avoid template overrides
Ask me anything @ end
2. How to add PHP snippets to your WooCommerce
website
Single Product Page
Snippets @ end of functions.php, BEFORE ‘?>’
Snippets @ end of functions.php, BEFORE ‘?>’
Final Result
Snippets @ end of functions.php, BEFORE ‘?>’
Final Result
“White Screen of Death”
How NOT to customize WooCommerceHow to add a PHP snippet to your website
How to use actions to avoid template overrides
Ask me anything @ end
3. How to use actions to customize WooCommerce
WC template files: do_action(‘name-of-the-hook’);
Single Product PageHooks?
BusinessBloomer.com/HOOKS
“I would like to add text @ Single Product Page above product title”
BusinessBloomer.com/HOOKS
woocommerce_single_product_summary
Final Result
BusinessBloomer.com/HOOKS
I would like to REMOVE “Category: Black” @ Single Product Page
BusinessBloomer.com/HOOKS
woocommerce_single_product_summary
Final Result
How NOT to customize WooCommerceHow to add a PHP snippet to your website
How to use actions to avoid template overrides
Ask me anything
Wrapping up...
You don’t need to be a PHP guru!
You can customize Woo little by little!
Free Access to Slides & Recording
Thank you!
And now, ask me anything you like in the Twitter chat!