Woo Developer Blog
The commerce platform for developers
Recent posts
-
Change a currency symbol
•
See currency list for reference on currency codes. 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 to your parent theme’s functions.php file as this will be wiped entirely when you update the theme. […]
-
Query whether WooCommerce is activated
•
If you’re building a theme which supports but doesn’t require WooCommerce, you may want to wrap WooCommerce functionality (think cart links etc) inside a conditional query. That way, if WooCommerce isn’t activated, the functionality is simply ignored instead of producing fatal errors. https://gist.github.com/woogists/fdf6e519d9c30d98c9878fbcbd3ba92a
-
Rename a country in WooCommerce
•
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 directly to your parent theme’s functions.php file, as this will be wiped entirely when you update the theme. https://gist.github.com/woogists/3d817a0d7b1572542a4ec2f290fec504
-
Remove product content based on category
•
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 directly to your parent theme’s functions.php file, as this will be wiped entirely when you update the theme. The following code will remove product images […]
-
Hide sub-category product count in product archives
•
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 don’t add custom code directly to your parent theme’s functions.php file as this will be wiped entirely when you update the theme. https://gist.github.com/woogists/bb3e6eff243e10f18ce5582f97f514dc Turns this: Into this:
-
Editing product data tabs
•
You need to add the 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 don’t add custom code directly to your parent theme’s functions.php file as this will be wiped entirely when you update the theme. Removing Tabs Use […]
-
Add checkout validation styles to a third party or custom theme
•
You need to add this CSS to your child theme’s style.css file or to your customizers’ “Additional CSS” section. Please don’t add custom code directly to your parent theme’s style.css file as this will be wiped entirely when you update the theme. https://gist.github.com/woogists/f98721aaeee22daed22e1507714b854b
-
Make price widget draggable on touch devices
•
Resources Grab this script and save it to the JS folder in your theme directory. Installation 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 to your parent theme’s functions.php file as this will […]
-
Hide other shipping methods when “Free Shipping” is available
•
Overview By default, WooCommerce will show all shipping methods that match the customer and the cart contents. This means Free Shipping will also show along with Flat Rate and other Shipping Methods. The functionality to hide all other methods and only show Free Shipping requires either custom PHP code or a plugin/extension. If you’d like […]
-
Show product categories in WooFramework breadcrumbs
•
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 directly to your parent theme’s functions.php file, as this will be wiped entirely when you update the theme. https://gist.github.com/woogists/b3f5aaf5362f87975f892b6a2789ab45