As browser caching mechanisms are becoming more and more aggressive, it could be very handy – when in development stage – to dynamically purge assets cache using the “version” argument when enqueuing scripts and styles in WordPress.
Continue reading Using dynamic version parameter in wp_enqueue_style to prevent caching assets
WooCommerce is a very great platform for developers since the source code provides hooks almost everywhere. It means default behaviors and datas can be easily altered by your own code. But for regular users / shop owners, that means “hidden” features you can’t access without a plugin.
For instance, i often receive requests from people who would like to use one of my plugin in order to add attachments to their transactional emails in WooCommerce. Since the plugin is not designed primarily for that here is a little snippet you can use to achieve that. Continue reading Adding email attachments in WooCommerce
This little snippet will help you to handle proper redirection when dealing with discontinued products.
All you have to do is add it to your functions.php (in your theme folder) and set your product status to “draft” when you are sure you’ll never have it back in stock again.
Continue reading Discontinued product and SEO in WooCommerce
WooCommerce displays products in four columns when you’ve just installed it. Depending on the theme you use you might not be able to adjust that value through options. Hopefully there’s a filter for that : loop_shop_columns. Continue reading Adjusting shop columns number in WooCommerce
If you have only one image for your product set as “featured image” and don’t need any gallery or zooming effect here’s how you can quicky remove the anchor that link to your picture file.
Continue reading Remove link on thumbnail in WooCommerce product page
If you don’t want / don’t need to repeat the “product description” and / or “additional information” title within the tab content on your product page there are filters for that !
Continue reading Removing product description and additional information titles in WooCommerce product tabs