# How to get the attribute Array for Variant Articles?

**URL:** <https://forum.shopware.com/t/how-to-get-the-attribute-array-for-variant-articles/65957>\
**Category:** Programmierung\
**Created:** [2. April 2020 um 08:04 UTC](https://forum.shopware.com/t/how-to-get-the-attribute-array-for-variant-articles/65957 "2020-04-02T08:04:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abinjohnedamana](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/abinjohnedamana/32/17378_2.png) [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Post date:** [2. April 2020 um 08:04 UTC](https://forum.shopware.com/t/how-to-get-the-attribute-array-for-variant-articles/65957/1 "2020-04-02T08:04:40Z")

</div>

Hi

How to get the attribute Array for Variant Articles (the array is always empty, at the article details Page).

I want to get attributes array of each child with all available attributes (also custom attributes).

 ![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/6/6b7fe3fddd0d6b3cc55dc6f4b0688e1fb81746e2.jpeg)  
&nbsp;

---

<div class="post-metadata">

**Author:** ![uehler](https://avatars.discourse-cdn.com/v4/letter/u/f14d63/32.png) [@uehler](https://forum.shopware.com/u/uehler)\
**Post date:** [2. April 2020 um 17:34 UTC](https://forum.shopware.com/t/how-to-get-the-attribute-array-for-variant-articles/65957/2 "2020-04-02T17:34:56Z")

</div>

If I understand you correctly, you want to get the attributes of the variant? So when you are on the blue product you want to also access the attributes of the red and green variant? This is not possible without a plugin.

The data in your screenshot are the attributes of the variant option.

This is what you want?

 ![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/2/28aa692319cc48a519384b8e976cb2d6cadb7bca.png)

but in your screenshot you try to get this

 ![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/7/76f866887223e99472a85a872827aa2a585b684d.png)
