I want to add custom field for quantity in custom option value like given in image. I tried following Magento 2 add new custom option text field but it add earlier while i need it with custom option value.
Any help will be appreciated.
Please follow below steps:
Step1: First of all keep back up "CustomOptions.php" from the below mentioned path
Step 2: Please follow the below github link and download the file and place the same in the respected (mentioned) path. Click Here Github Link
Step 3: Please create a database column in the name of 'qty_option' for the below 2 tables
Step 4: Clear cache and page_cache and re login into admin and check the same.
Note: Once it works using meld tool identify the changes what i did in the CustomOptions.php
Using plugin concept try to achieve the same from your end. Thanks
If anyone is still struggling with that, then you can follow this https://magento.stackexchange.com/a/220754/21432
This helped me to resolve my problem. And hope this helps anyone else too!
This explains how you can add a new field with option line item within a bundle.