These slides belong to https://CustomizeWoo.com, 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 https://businessbloomer.com/customizewoo-master-woocommerce-online-course/
5. single-product.php lines 1-20
CustomizeWoo.com
What the template does
How to override (copy template to
/woocommerce folder > HOWEVER section
as this is not ideal)
@version 1.6.4 (last time it was updated)
Security: prevent direct access
7. single-product.php lines 21-39
CustomizeWoo.com
get_header
do_action(
'woocommerce_before_main_content' )
wc_get_template_part( 'content',
'single-product' ) which means GET THE
CONTENT-SINGLE-PRODUCT.PHP FILE
14. WooCommerce Plugin: ../templates
Next: hook theory...
But for now: remember that if you
see do_action you can run your
custom functions there WITHOUT
overriding @ /woocommerce
CustomizeWoo.com