To group the batch products on web, please refer to the below mentioned steps:
Step 1: Add the main product for which you want to add sub-products. Please note that the main product should not be having any Batches/Serial Numbers/Variants.
Step 2: Add the sub-products with batches. Refer to the below shared article for adding the batch product.
Step 3: Once the batch product is added. Go to Groups >> Click on Create Group
Step 4: Select the Main Product >> Click on Select Sub Products
Step 5: Select the Sub Batch Product >> Click on Edit Products
Step 6: Enter the desired quantity that will be used in making the main product >> Click on Submit