07-26-2023, 06:16 PM
I am trying to display Product's combination attributes (like "size") in the front-office of PrestaShop.
**When I say "combination attributes" I mean this (selected Size : S, for example):**
![Size : S][1]
**I tried doing it this way:**
![Code sample][2]
**But all I get is this:**
![enter image description here][3]
[1]:
[2]:
[3]:
There is no "size" key in the results and I am a little bit lost. I am trying to send this data to the `CartController` (which I will override) and display the selected size in the cart. Can you help me with retrieving this data, please?
**When I say "combination attributes" I mean this (selected Size : S, for example):**
![Size : S][1]
**I tried doing it this way:**
![Code sample][2]
**But all I get is this:**
![enter image description here][3]
[1]:
[2]:
[3]:
There is no "size" key in the results and I am a little bit lost. I am trying to send this data to the `CartController` (which I will override) and display the selected size in the cart. Can you help me with retrieving this data, please?