Vérifiez WooCommerce si la page de la boutique
add_action( 'template_redirect', 'check_if_shoppage' );
function check_if_shoppage()
{
if(is_shop())
{
echo '<script>console.log("On shop page");</script>';
}
}
Button