SlideShare a Scribd company logo
1 of 31
Download to read offline
Customizing WooCommerce
#wpm013
Customizing WooCommerce
#wpm013
Hallo, met Barry
WooCommerce developer @ WooThemes
Related Posts for WordPress

Download Monitor

Post Connector

What The File
Picking the right Theme
Maintained
No bloat
Easily customizable
Storefront
Created by WooThemes
It s free
Build for WooCommerce
http://www.woothemes.com/storefront/
Child Theme It
Extend the power of your theme
Override only that what s needed
Keep your theme updatable
This is where your custom CSS goes!
Plugins
Storefront Designer
Change without coding:
- Header

- Layout

- Buttons

- Typography
Storefront WC Customizer
Change without coding:
- Header

- Product archive page

- Product detail page

- Homepage
On wordpress.org
WooCommerce Product Archive Customiser

https://wordpress.org/plugins/woocommerce-product-archive-customiser/
WooCommerce Product Details Customiser

https://wordpress.org/plugins/woocommerce-product-details-customiser/
WooCommerce Customizer

https://wordpress.org/plugins/woocommerce-customizer/
Custom Code
Custom Code
Filters
Actions
Template overrides
Code Location
Shop related code -> custom plugin
Theme related code -> theme
Filters
Change something
879 filters
Checkout fields
function dlm_checkout_fields( $fields ) {

unset( $fields['billing']['billing_phone'] );

unset( $fields['billing']['billing_address_2'] );



return $fields;

}



add_filter( 'woocommerce_checkout_fields',
‘dlm_checkout_fields’ );
No Order Notes Field
add_filter( 'woocommerce_enable_order_notes_field',
'__return_false' );
Change ATC Label
function wpm_change_adc_text( $text, $product ) {

return 'Yeah Buddy!';

}



add_filter( 'woocommerce_product_add_to_cart_text',
'wpm_change_adc_text', 10, 2 );
Personalize Thank You
function dlm_title_order_received( $title, $id ) {

if ( is_order_received_page() && get_the_ID() === $id ) {

global $wp;



$order_id = apply_filters( 'woocommerce_thankyou_order_id', absint( $wp-
>query_vars['order-received'] ) );

$order_key = apply_filters( 'woocommerce_thankyou_order_key', empty( $_GET['key'] ) ? ''
: wc_clean( $_GET['key'] ) );



if ( $order_id > 0 ) {

$order = wc_get_order( $order_id );

if ( $order->order_key != $order_key ) {

unset( $order );

}

}



if ( isset ( $order ) ) {

$title = sprintf( "Thank you, %s!", esc_html( $order->billing_first_name ) );

}





}



return $title;

}



add_filter( 'the_title', 'dlm_title_order_received', 10, 2 );
Actions
Do something
486 actions
The power of removing hooks
What Happens Next?
function dlm_what_happens_next() {

?>

<div class="dlm-what-happens-next">

<strong>What happens next?</strong>

<p>After you've completed your payment you'll receive an email
containing your license keys and a download links.</p>

</div>

<?php

}



add_action( 'woocommerce_after_checkout_form',
'dlm_what_happens_next' );
Removing Result Count
remove_action( 'woocommerce_before_shop_loop',
'woocommerce_result_count', 20 );
Template Overrides
Override a template in your theme
105 overridable templates
WooCommerce scans theme for /woocommerce/
Template Overrides
For HTML structure changes
Safe but last resort
Template overrides bring maintenance
Template Overrides
Find original template
Customize it to your liking
Path in theme:

/woocommerce/path_of_original_template
Product Short Description
<?php



global $post;



if ( ! $post->post_excerpt ) return;

?>

<div itemprop="description">

<?php echo apply_filters( 'woocommerce_short_description',
$post->post_excerpt ) ?>

</div>
single-product/short-description.php
Product Short Description
<?php



global $post;



if ( ! $post->post_excerpt ) return;

?>

<p itemprop="description">

<?php echo apply_filters( 'woocommerce_short_description',
$post->post_excerpt ) ?>

</p>
single-product/short-description.php
WC System Status
Barry Kooij
@CageNL
barrykooij.com

More Related Content

What's hot

Ravi Singh / Campaign Guru Biography
Ravi Singh / Campaign Guru BiographyRavi Singh / Campaign Guru Biography
Ravi Singh / Campaign Guru Biography
emt_slideshare
 
Copycopter Presentation by Joe Ferris at BostonRB
Copycopter Presentation by Joe Ferris at BostonRBCopycopter Presentation by Joe Ferris at BostonRB
Copycopter Presentation by Joe Ferris at BostonRB
bostonrb
 
How to add a sound clip to a blog in jeeran
How to add a sound clip to a blog in jeeranHow to add a sound clip to a blog in jeeran
How to add a sound clip to a blog in jeeran
Jeeran
 

What's hot (20)

Php sessions
Php sessionsPhp sessions
Php sessions
 
Ravi Singh / Campaign Guru Biography
Ravi Singh / Campaign Guru BiographyRavi Singh / Campaign Guru Biography
Ravi Singh / Campaign Guru Biography
 
Php cookies
Php cookiesPhp cookies
Php cookies
 
Amazon Odoo V8 Connector
Amazon Odoo V8 ConnectorAmazon Odoo V8 Connector
Amazon Odoo V8 Connector
 
Wordpress install
Wordpress installWordpress install
Wordpress install
 
Web scraping
Web scrapingWeb scraping
Web scraping
 
Odoo eBay Connector
Odoo eBay ConnectorOdoo eBay Connector
Odoo eBay Connector
 
Frontend Masters Košice - Styled Components
Frontend Masters Košice - Styled ComponentsFrontend Masters Košice - Styled Components
Frontend Masters Košice - Styled Components
 
WordPress Theme Workshop: Customizer
WordPress Theme Workshop: CustomizerWordPress Theme Workshop: Customizer
WordPress Theme Workshop: Customizer
 
Template Seo Friendly Untuk Blogspot
Template Seo Friendly Untuk BlogspotTemplate Seo Friendly Untuk Blogspot
Template Seo Friendly Untuk Blogspot
 
Copycopter Presentation by Joe Ferris at BostonRB
Copycopter Presentation by Joe Ferris at BostonRBCopycopter Presentation by Joe Ferris at BostonRB
Copycopter Presentation by Joe Ferris at BostonRB
 
Kiteops Startup Spotlight Pitch Deck
Kiteops Startup Spotlight Pitch DeckKiteops Startup Spotlight Pitch Deck
Kiteops Startup Spotlight Pitch Deck
 
You're Doing It Wrong
You're Doing It WrongYou're Doing It Wrong
You're Doing It Wrong
 
Building a Membership Site with WooCommerce
Building a Membership Site with WooCommerceBuilding a Membership Site with WooCommerce
Building a Membership Site with WooCommerce
 
Building a Membership Site with WooCommerce Memberships
Building a Membership Site with WooCommerce MembershipsBuilding a Membership Site with WooCommerce Memberships
Building a Membership Site with WooCommerce Memberships
 
WooCommerce: Where to Place Customization
WooCommerce: Where to Place CustomizationWooCommerce: Where to Place Customization
WooCommerce: Where to Place Customization
 
Readme
ReadmeReadme
Readme
 
How to add a sound clip to a blog in jeeran
How to add a sound clip to a blog in jeeranHow to add a sound clip to a blog in jeeran
How to add a sound clip to a blog in jeeran
 
WP-CLI: WordCamp NYC 2015
WP-CLI: WordCamp NYC 2015WP-CLI: WordCamp NYC 2015
WP-CLI: WordCamp NYC 2015
 
How to Issue and Activate Free SSL using Let's Encrypt
How to Issue and Activate Free SSL using Let's EncryptHow to Issue and Activate Free SSL using Let's Encrypt
How to Issue and Activate Free SSL using Let's Encrypt
 

Viewers also liked (7)

Plugin development wpmeetup010
Plugin development wpmeetup010Plugin development wpmeetup010
Plugin development wpmeetup010
 
Plugin Development @ WordCamp Norway 2014
Plugin Development @ WordCamp Norway 2014Plugin Development @ WordCamp Norway 2014
Plugin Development @ WordCamp Norway 2014
 
Unit testing @ WordPress Meetup Tilburg 7 januari 2014
Unit testing @ WordPress Meetup Tilburg 7 januari 2014Unit testing @ WordPress Meetup Tilburg 7 januari 2014
Unit testing @ WordPress Meetup Tilburg 7 januari 2014
 
Related Content
Related ContentRelated Content
Related Content
 
Unit Testing in WordPress
Unit Testing in WordPressUnit Testing in WordPress
Unit Testing in WordPress
 
Plugin Development - WP Meetup Antwerp
Plugin Development - WP Meetup AntwerpPlugin Development - WP Meetup Antwerp
Plugin Development - WP Meetup Antwerp
 
We Will VAT You
We Will VAT YouWe Will VAT You
We Will VAT You
 

Similar to Customizing Your WooCommerce Store

Gail villanueva add muscle to your wordpress site
Gail villanueva   add muscle to your wordpress siteGail villanueva   add muscle to your wordpress site
Gail villanueva add muscle to your wordpress site
references
 
How Not to Build a WordPress Plugin
How Not to Build a WordPress PluginHow Not to Build a WordPress Plugin
How Not to Build a WordPress Plugin
Will Norris
 
WordPress Admin UI - Future Proofing Your Admin Pages
WordPress Admin UI - Future Proofing Your Admin PagesWordPress Admin UI - Future Proofing Your Admin Pages
WordPress Admin UI - Future Proofing Your Admin Pages
Brandon Dove
 
Your Custom WordPress Admin Pages Suck
Your Custom WordPress Admin Pages SuckYour Custom WordPress Admin Pages Suck
Your Custom WordPress Admin Pages Suck
Anthony Montalbano
 
TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!
TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!
TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!
Coulawrence
 

Similar to Customizing Your WooCommerce Store (20)

[Bristol WordPress] Supercharging WordPress Development
[Bristol WordPress] Supercharging WordPress Development[Bristol WordPress] Supercharging WordPress Development
[Bristol WordPress] Supercharging WordPress Development
 
Making WordPress Your CMS and Automatically Updating a Self Hosted WordPress ...
Making WordPress Your CMS and Automatically Updating a Self Hosted WordPress ...Making WordPress Your CMS and Automatically Updating a Self Hosted WordPress ...
Making WordPress Your CMS and Automatically Updating a Self Hosted WordPress ...
 
How to make a WordPress theme
How to make a WordPress themeHow to make a WordPress theme
How to make a WordPress theme
 
WordPress Security - WordCamp Boston 2010
WordPress Security - WordCamp Boston 2010WordPress Security - WordCamp Boston 2010
WordPress Security - WordCamp Boston 2010
 
WordPress Security - WordCamp NYC 2009
WordPress Security - WordCamp NYC 2009WordPress Security - WordCamp NYC 2009
WordPress Security - WordCamp NYC 2009
 
WooCommerce template customization
WooCommerce template customizationWooCommerce template customization
WooCommerce template customization
 
WordPress Security Updated - NYC Meetup 2009
WordPress Security Updated - NYC Meetup 2009WordPress Security Updated - NYC Meetup 2009
WordPress Security Updated - NYC Meetup 2009
 
Childthemes ottawa-word camp-1919
Childthemes ottawa-word camp-1919Childthemes ottawa-word camp-1919
Childthemes ottawa-word camp-1919
 
Building Potent WordPress Websites
Building Potent WordPress WebsitesBuilding Potent WordPress Websites
Building Potent WordPress Websites
 
Demystifying Hooks, Actions & Filters - WordCamp Belfast 2018
Demystifying Hooks, Actions & Filters - WordCamp Belfast 2018Demystifying Hooks, Actions & Filters - WordCamp Belfast 2018
Demystifying Hooks, Actions & Filters - WordCamp Belfast 2018
 
Gail villanueva add muscle to your wordpress site
Gail villanueva   add muscle to your wordpress siteGail villanueva   add muscle to your wordpress site
Gail villanueva add muscle to your wordpress site
 
How Not to Build a WordPress Plugin
How Not to Build a WordPress PluginHow Not to Build a WordPress Plugin
How Not to Build a WordPress Plugin
 
Intro to WordPress Plugin Development
Intro to WordPress Plugin DevelopmentIntro to WordPress Plugin Development
Intro to WordPress Plugin Development
 
WordPress Admin UI - Future Proofing Your Admin Pages
WordPress Admin UI - Future Proofing Your Admin PagesWordPress Admin UI - Future Proofing Your Admin Pages
WordPress Admin UI - Future Proofing Your Admin Pages
 
Supercharging WordPress Development - Wordcamp Brighton 2019
Supercharging WordPress Development - Wordcamp Brighton 2019Supercharging WordPress Development - Wordcamp Brighton 2019
Supercharging WordPress Development - Wordcamp Brighton 2019
 
You're Doing it Wrong - WordCamp Orlando
You're Doing it Wrong - WordCamp OrlandoYou're Doing it Wrong - WordCamp Orlando
You're Doing it Wrong - WordCamp Orlando
 
Your Custom WordPress Admin Pages Suck
Your Custom WordPress Admin Pages SuckYour Custom WordPress Admin Pages Suck
Your Custom WordPress Admin Pages Suck
 
TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!
TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!
TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!
 
HTML5 New and Improved
HTML5   New and ImprovedHTML5   New and Improved
HTML5 New and Improved
 
20110820 header new style
20110820 header new style20110820 header new style
20110820 header new style
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Recently uploaded (20)

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 

Customizing Your WooCommerce Store