# Why are custom fields shown as null?

**URL:** <https://forum.shopware.com/t/why-are-custom-fields-shown-as-null/66172>\
**Category:** General Questions (EN)\
**Created:** [10. April 2020 um 11:31 UTC](https://forum.shopware.com/t/why-are-custom-fields-shown-as-null/66172 "2020-04-10T11:31:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![davit\_sargsyan](https://avatars.discourse-cdn.com/v4/letter/d/7ba0ec/32.png) [@davit\_sargsyan](https://forum.shopware.com/u/davit_sargsyan)\
**Post date:** [10. April 2020 um 11:31 UTC](https://forum.shopware.com/t/why-are-custom-fields-shown-as-null/66172/1 "2020-04-10T11:31:44Z")

</div>

I create a custom field set and assign it to a product. Then I write values in that fields from product settings. Then I dump the page.product variable and see that customfields show a null. Is this a bug?

---

<div class="post-metadata">

**Author:** ![davit\_sargsyan](https://avatars.discourse-cdn.com/v4/letter/d/7ba0ec/32.png) [@davit\_sargsyan](https://forum.shopware.com/u/davit_sargsyan)\
**Post date:** [12. April 2020 um 11:44 UTC](https://forum.shopware.com/t/why-are-custom-fields-shown-as-null/66172/2 "2020-04-12T11:44:55Z")

</div>

I have found an answer to this question, It seems that if the product contains variants, then the values from the custom fields are not linked by default to the variants and the fields are left empty. You have to manally fill the custom fields in each variant.

If there is another workaround then please let me know.
