How do I get the product ID when I submit the form?
Hi guys finally i got the solution to it, all that I need it was the following:

$product_id = \Drupal::routeMatch()-&gt;getParameter('commerce_product')-&gt;id();


then I got the product id of the product i am checking it