# Extrafield where I choose a product and its quantity

**URL:** <https://www.dolibarr.org/forum/t/extrafield-where-i-choose-a-product-and-its-quantity/29613>\
**Category:** PM modules\
**Created:** [November 20, 2024, 3:17pm UTC](https://www.dolibarr.org/forum/t/extrafield-where-i-choose-a-product-and-its-quantity/29613 "2024-11-20T15:17:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![beltranfv](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/b/7ab992/32.png) [@beltranfv](https://www.dolibarr.org/forum/u/beltranfv)\
**Post date:** [November 20, 2024, 3:17pm UTC](https://www.dolibarr.org/forum/t/extrafield-where-i-choose-a-product-and-its-quantity/29613/1 "2024-11-20T15:17:43Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jonbendtsen](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/j/977dab/32.png) [@jonbendtsen](https://www.dolibarr.org/forum/u/jonbendtsen)\
**Post date:** [November 20, 2024, 4:29pm UTC](https://www.dolibarr.org/forum/t/extrafield-where-i-choose-a-product-and-its-quantity/29613/2 "2024-11-20T16:29:57Z")

</div>

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”

---

<div class="post-metadata">

**Author:** ![beltranfv](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/b/7ab992/32.png) [@beltranfv](https://www.dolibarr.org/forum/u/beltranfv)\
**Post date:** [November 20, 2024, 4:51pm UTC](https://www.dolibarr.org/forum/t/extrafield-where-i-choose-a-product-and-its-quantity/29613/3 "2024-11-20T16:51:40Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jonbendtsen](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/j/977dab/32.png) [@jonbendtsen](https://www.dolibarr.org/forum/u/jonbendtsen)\
**Post date:** [November 20, 2024, 5:11pm UTC](https://www.dolibarr.org/forum/t/extrafield-where-i-choose-a-product-and-its-quantity/29613/4 "2024-11-20T17:11:00Z")

</div>

Here i link to a thirdparty.

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

 ![image](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/2/21650f89fea2ba4ee079e93f9f22bf23b132870f.png)
