<p>Line item options are built in and are designed exactly for this use-case: </p>

<p><a href="https://docs.craftcms.com/commerce/v2/adding-to-and-updating-the-cart.html#line-item-options-and-notes" rel="nofollow noreferrer">https://docs.craftcms.com/commerce/v2/adding-to-and-updating-the-cart.html#line-item-options-and-notes</a></p>

CC BY-SA 4.0
2019-04-03T11:21:51.710Z
edited my question above.
Romberto
CC BY-SA 4.0
2019-04-03T21:20:22.957Z
Ii guess something is going wrong with my local env.. Strange: I can only store 1 product in my cart. I am using the Craft Commerce demo templates for testing purposes. Update Commerce and Craft to latest version. Any clue?
Romberto
CC BY-SA 4.0
2019-04-03T10:02:00.097Z
2019-04-03T10:02:00.097Z
Luke Holder
<p>Solved the problem. Omg, I forgot to enable Craft Commerce Pro. That's why it didn't work. </p>

CC BY-SA 4.0
2019-04-04T08:06:55.877Z
2019-04-04T21:05:21.120Z
2019-04-04T21:05:21.120Z
Romberto
<p>Our client wants a specific option built in Craft Commerce. I guess is possible, but don't know how? Maybe you can help me out?</p>

<p>A customer selects a box: for example "giftbox custom 4" (priced $ 15). After selecting the box. The customer can pick 4 different tastes of chocolate cookies (e.g. 2 brownies, 2 white choco. etc). After picking the cookies, the client can add this to the cart.</p>

<p>My initial thought is to use a note fields for this, storing all the cookie data. But how can I make sure that each "giftbox custom 4" is a unique line item? Now Craft is adding all the "giftbox custom 4" together.</p>

<p>This is what I want to create:</p>

<p><strong>2x Giftbox custom 4</strong><br>
Containing: 2 caramel, 2 brownies</p>

<p><strong>1x Giftbox custom 4</strong><br>
Containing: 1 white choco, 3 caramel</p>

<p><strong>2x Giftbox custom 4</strong><br>
Containing: 2 dark choco, 1 caramel, 1 fruit</p>

<p>In total there a more than 14 different giftbox sizes. 
Giftbox custom 2, Giftbox custom 4, Giftbox custom 6, etc.<br>
And you can choose from > 30 different cookies</p>

<p>@Luke Holder:
When I am using line-item options: For example: Giftbox 4 -> with options ABCD.  </p>

<p>After submitting: they appear in my basket. Perfect, and i can change the quantity of Giftbox 4 -> with options ABCD . </p>

<p>But when I go back to the shop and add an extra giftbox to the cart: Giftbox 4 -> with options EFGH. Giftbox 4 -> with options ABCD are removed from my cart. </p>

<p><em>So i want the "Giftbox 4" products separated:</em><br>
1x Giftbox 4 -> with options ABCD .<br>
1x Giftbox 4 -> with options EFGH</p>

<craft3>
Craft Commerce cart product as unique product with different notes
# Craft Commerce cart product as unique product with different notes

(Asked by: username_0 on 2019-04-03)

Our client wants a specific option built in Craft Commerce. I guess is possible, but don't know how? Maybe you can help me out?

A customer selects a box: for example "giftbox custom 4" (priced $ 15). After selecting the box. The customer can pick 4 different tastes of chocolate cookies (e.g. 2 brownies, 2 white choco. etc). After picking the cookies, the client can add this to the cart.

My initial thought is to use a note fields for this, storing all the cookie data. But how can I make sure that each "giftbox custom 4" is a unique line item? Now Craft is adding all the "giftbox custom 4" together.

This is what I want to create:

**2x Giftbox custom 4**  
Containing: 2 caramel, 2 brownies

**1x Giftbox custom 4**  
Containing: 1 white choco, 3 caramel

**2x Giftbox custom 4**  
Containing: 2 dark choco, 1 caramel, 1 fruit

In total there a more than 14 different giftbox sizes.
Giftbox custom 2, Giftbox custom 4, Giftbox custom 6, etc.  
And you can choose from > 30 different cookies

@username_1:
When I am using line-item options: For example: Giftbox 4 -> with options ABCD.

After submitting: they appear in my basket. Perfect, and i can change the quantity of Giftbox 4 -> with options ABCD .

But when I go back to the shop and add an extra giftbox to the cart: Giftbox 4 -> with options EFGH. Giftbox 4 -> with options ABCD are removed from my cart.

*So i want the "Giftbox 4" products separated:*  
1x Giftbox 4 -> with options ABCD .  
1x Giftbox 4 -> with options EFGH

**Tags:** craft3


---

## 2 answers

### Answer by username_1 on 2019-04-03. Score: 1

Line item options are built in and are designed exactly for this use-case:

<https://docs.craftcms.com/commerce/v2/adding-to-and-updating-the-cart.html#line-item-options-and-notes>

> **Comments:**
> **username_0**: edited my question above.  
> **username_0**: Ii guess something is going wrong with my local env.. Strange: I can only store 1 product in my cart. I am using the Craft Commerce demo templates for testing purposes. Update Commerce and Craft to latest version. Any clue?  

---

### Answer by username_0 on 2019-04-04. Score: 0

Solved the problem. Omg, I forgot to enable Craft Commerce Pro. That's why it didn't work.


---

