Remove clickable Link of WordPress Site Logo from Woocommerce Single Product page

Each product should have a unique class identifier in the body. Compare two product pages and depending on the theme you are using. Allot of them have a unique css identify. Look for something like: postid- followed my numbers for example. If you had something like: <body class=”product-template-default single single-product postid-3592 wp-custom-logo woocommerce woocommerce-page woocommerce-no-js … Read more

Get WooCommerce product category list in functions.php

You need to use action to get categories. in init action you can get product categories. add_action(‘init’, ‘my_product_cat’); function my_product_cat() { $woo_cat_args = array( ‘taxonomy’ => ‘product_cat’, ‘orderby’ => ‘name’, ‘hide_empty’ => 0, ); $woo_categories = get_categories( $woo_cat_args ); echo “<pre>”; print_r($woo_categories); echo “</pre>”; }

How to get products without tag?

I’m going to answer my own question: SELECT ID FROM wpyw_posts WHERE ID NOT IN ( SELECT wpyw_term_relationships.object_id FROM wpyw_term_relationships INNER JOIN wpyw_term_taxonomy ON wpyw_term_taxonomy.term_id = wpyw_term_relationships.term_taxonomy_id WHERE wpyw_term_taxonomy.taxonomy = ‘product_tag’ ) AND wpyw_posts.post_type=”product”