php – How to replace the "Add to cart" button of a product type?

I created a custom module for Drupal 8 and Drupal Commerce 2.10.

Currently, if the owner of the current store does not have the marchand_premium role, the "Add to cart" button is overwritten.

My problem is that it replaces the "Add to cart" button of all my product type.

I just want to replace the "Add to cart" button with Service type of products (this is the name mahine of the type of product).

getStore () -> getOwner ();
if (! $ owner-> hasRole (& # 39; marchand_premium & # 39;)) {
if (isset ($ form["#attributes"]["class"]) && in_array ("trade-order-item-add-to-cart-form", $ form["#attributes"]["class"])) {
$ selectedVariationId = $ form_state-> get (& # 39; selected_variation & # 39;);
$ selectedVariation =  Drupal  commerce_product  Entity  ProductVariation :: load ($ selectedVariationId);
$ form['actions']['submit']['#value']    = t (& # 39; Offline sales & # 39;);
$ form['actions']['submit']['#attributes']['class']    = array (& # 39; button - add-to-cart & # 39 ;, & # 39; button button - primary & # 39 ;, & # 39; js-form-submit & # 39 ;, & # 39; form-submit & # 39 ;, & # 39; is-disabled & # 39 ;, & # 39; btn-warning & # 39 ;, & # 39; btn & # 39;);
$ form['actions']['submit']['#disabled']    = TRUE;
}
}
}