Tags » Woocommerce

Wordpress Check current category has child category

$current_cat_obj = get_queried_object();
$children_category = category_has_children($current_cat_obj->term_id,'product_cat');
function category_has_children( $term_id = 0, $taxonomy = 'category' ) {
$children = get_categories( array( 'child_of' => $term_id, 'taxonomy' => $taxonomy ) );
return ( $children );


A (semi) typical work day for me

This post is part of a series describing what Automatticians do on a daily basis. You can read more posts like this by following the tag #a8cday on… 934 more words


50 Shades of Support

I live in Mataró, very close to Barcelona. Many friends commute daily into the metropolis, putting up with crowded trains or traffic jams. I don’t. I am  Happiness Engineer for WooCommerce, a division of Automattic (and… 750 more words


How to remove the sorting option in the WooCommerce Storefront Theme

Here’s how it’s done (it’s a PNG):

Put this snippet in your theme’s function.php

This is the official way to do it. It will remove the sorting from the entire webshop.  187 more words


Modifying the WooCommerce Product Query for Product Loop

How to change what products show up in the shop loop ?

Add this to your theme's functions.php or any plugin file.

add_action( 'woocommerce_product_query', 'show_active_events_only' );
41 more words

Codex Wp

Tips to Secure Your E-commerce Website and Keep Exploits at Bay

The online world is truly vulnerable and this notion has been substantiated by the alleged foreign hacking of U.S. elections that has been uncovered in the recent past. 351 more words

E-commerce Development Specialist