WooCommerce sprawdź, czy strona sklepu

add_action( 'template_redirect', 'check_if_shoppage' );

function check_if_shoppage() 
{
    if(is_shop())
	{
		echo '<script>console.log("On shop page");</script>';
	}
}
Button