WooCommerce allow us to set catalog mode. See tutorial below:
https://wordpress.org/plugins/elex-woocommerce-catalog-mode/

WooCommerce Loop over product categories

<?php
$args = array(
     'taxonomy' => 'product_cat',
     'orderby' => 'name',
     'order' => 'ASC',
     'hide_empty' => false,

     'exclude' => array(1, 2, 3) //category IDs to exclude
);
foreach( get_categories( $args ) as $category ) :
     //do category data
endforeach;
?>

https://wpza.net/how-to-loop-through-woocommerce-categories/

0
Would love your thoughts, please comment.x
()
x