woocommerce if is category page get all current products code example
Example: woocommerce if is category page
if( is_product_category() ) {
// yay, we are on a product category page!
} else {
}
if( is_product_category() ) {
// yay, we are on a product category page!
} else {
}