Extrafield where I choose a product and its quantity

How can I create an extrafield to choose a product and its quantity. For example: I create a ticket and I want to asign 5 boxes.

extrafields are sometimes also called Complementary Attributes.

You can create them using 2 different methods. Either use the API or use the Standard Dolibarr GUI and do this:

  1. Click home icon in the top left side of the top menu.
  2. click the hamburger menu
  3. click setup
  4. click modules/applications
  5. search for the module you need to change
  6. click the cogwheel
  7. switch to the tab named “Complementary Attributes”

Yes! I know how to create a “Complementary Attribute” or “Extrafield”. I want to know how to create a list which contains the “product list” so I can select certain products and assign a quantity for each one. Basically replicate the shipping/orders part in which the products and their quantities are added.

Here i link to a thirdparty.

You need to change Societe:societe/class/societe.class.php to the corresponding to products.