Why are all line items not showing in my cart?

Hey all,

I’ve got a product in my store that uses three drop-down style line items (flavors), but the cart and checkout page only display the last line item (with the label of the first line item).

I’ve been browsing the forums, but I can’t find an answer.

This is my code:

{% if template contains '06pack' %}
           

           

             

             
           

           

             

             
           

           
           

             

             
           

        
           
               

           {% endif %}

Any help @Jason or others?

Hi @Fritz_Digital ,

Please change the code of Flavor 2 and Flavor 3, it will work fine. Refer: https://i.imgur.com/QFvZFXr.png

Hope it helps!

1 Like

Whilst you do have three options, they are all called the same thing. Is that intentional? I don’t think it is, but I can see this entire code in action hence me not be 100% sure.

I would have expected your fields to be named like so (to follow your naming convention)


...

Hi @Fritz_Digital ,

I feel I gave the first correct and detailed instructions. Did you check it?

If it helped you solve your issue, please mark it as a solution. Thank you and good luck.