-
Add a custom field (in an order) to the emails
•
You can add any custom field to your order emails by hooking in and specifying the name of the custom field. This can be useful if, for example, you want… Read more
-
Change the placeholder image
•
The placeholder image can now be set at: WooCommerce > Settings > Products as of version 3.5x. More info at: Configuring WooCommerce Settings. WooCommerce 3.4x or earlier Add code to… Read more
-
WooCommerce payment gateway plugin base
•
This code can be used as a base to create your own simple custom payment gateway for WooCommerce. If not used in a custom plugin, you need to add this… Read more
-
Change email subject lines
•
Add code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Avoid adding custom code directly… Read more
-
Allow shortcodes in product excerpts
•
Add code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Avoid adding custom code directly… Read more
-
Custom tracking code for the thanks page
•
This snippet is for adding tracking for a separate piece of analytic software you may have installed. The order object contains all the order data you should need, including line… Read more
-
Change number of upsells output
•
Add code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Avoid adding custom code directly… Read more
-
Change number of related products output
•
Add code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Avoid adding custom code directly… Read more
-
Hide loop read more buttons for out of stock items
•
You need to add this code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Please… Read more
-
Show cart contents / total
•
Add this code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Avoid adding custom code… Read more
-
Display My Account link in a template file
•
Displays a link to the user account section. If the user is not logged in the link will display ‘Login / Register’ and take the use to the login /… Read more
-
Exclude products from a particular category on the shop page
•
As ‘clothing’ is an example in the snippet below, be sure to use a product category slug that exists in your WooCommerce store. Note that this will only work when… Read more