how to check if a page is single product page in woocommerce 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 {
}