How to override email text New Customer Order?

The easiest way to override the WooCommerce emails is to copy woocommerce/templates/emails/admin-new-order.php to yourtheme/woocommerce/emails/admin-new-order.php and make any changes in your version of the template. This will ensure that any changes you make do not get lost during any subsequent upgrades. The text displayed in the subject line of the email is controlled via the GUI … Read more

How to get Woocomerce categories count

If anyone needs it $args = array( ‘type’ => ‘product’, ‘parent’ => get_queried_object_id(), ‘orderby’ => ‘term_group’, ‘hide_empty’ => true, ‘hierarchical’ => 1, ‘taxonomy’ => ‘product_cat’, ‘pad_counts’ => false ); $cats = get_categories( $args ); print_r(count($cats));

Update wordpress menu with woocommerce products

EDIT: I tried the following and it works in the theme “Storefront for woocommerce”(Though it needs additional styling). For some reason though, it does not work well with the twentyfifteen theme.(The submenu does not show.) add_filter( ‘wp_nav_menu_items’, ‘wc_products_on_nav_menu’); //filter to add the html add_action( ‘save_post_product’, ‘rebuild_custom_wc_nav_menu’); //action to regenerate the menu array anytime a product … Read more