Change display of product price on product show page only September 12, 2022 by Tarik Billa You can try with below condition for shop page only. if ( $product->is_type( 'variable' ) && is_shop()) {