# Custom Product-Box - No data in the storefront

**URL:** https://forum.shopware.com/t/custom-product-box-no-data-in-the-storefront/65583
**Category:** Programming (EN)
**Created:** [18. März 2020 um 15:22 UTC](https://forum.shopware.com/t/custom-product-box-no-data-in-the-storefront/65583 "2020-03-18T15:22:12Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![thepixture](https://avatars.discourse-cdn.com/v4/letter/t/e99b99/32.png) [@thepixture](https://forum.shopware.com/u/thepixture)
#### Post date: [18. März 2020 um 15:22 UTC](https://forum.shopware.com/t/custom-product-box-no-data-in-the-storefront/65583/1 "2020-03-18T15:22:12Z")

</div>

Based on the element “Product-Box” I created my own element and the corresponding storefront-template. I only changed the names in the index.js.

In the backend, the data of the selected product is also correctly displayed and stored. But in the frontend I do not see any product. If I dump() the data in the storefront-template, the value data = null.

With the default product box element it works fine.

Does anybody have an idea what could be the reason for this?

---

<div class="post-metadata">

### Author: ![ralfh](https://avatars.discourse-cdn.com/v4/letter/r/ee7513/32.png) [@ralfh](https://forum.shopware.com/u/ralfh)
#### Post date: [19. März 2020 um 06:43 UTC](https://forum.shopware.com/t/custom-product-box-no-data-in-the-storefront/65583/2 "2020-03-19T06:43:19Z")

</div>

I have the same problem at a custom text element. I copied the original text element to my extension. It’s working fine at the backend, but at the frontend **element.data** is null. But in translated -\> config -\> content -\> value, there is my string. The original template uses {{ element.data.content|raw }} for the output which is null.

---

<div class="post-metadata">

### Author: ![thepixture](https://avatars.discourse-cdn.com/v4/letter/t/e99b99/32.png) [@thepixture](https://forum.shopware.com/u/thepixture)
#### Post date: [19. März 2020 um 08:32 UTC](https://forum.shopware.com/t/custom-product-box-no-data-in-the-storefront/65583/3 "2020-03-19T08:32:11Z")

</div>

Have you tried {&nbsp;element.config.content.value|raw } for your text element? This is how i did it for my text element.

If i’ll do this for the product box i only get a hash&nbsp;value.

---

<div class="post-metadata">

### Author: ![ralfh](https://avatars.discourse-cdn.com/v4/letter/r/ee7513/32.png) [@ralfh](https://forum.shopware.com/u/ralfh)
#### Post date: [19. März 2020 um 08:41 UTC](https://forum.shopware.com/t/custom-product-box-no-data-in-the-storefront/65583/4 "2020-03-19T08:41:02Z")

</div>

Yes, that’s working, but I don’t know if it’s the „right“ way. I will use that for the moment.

---

<div class="post-metadata">

### Author: ![Vladislav](https://avatars.discourse-cdn.com/v4/letter/v/bbce88/32.png) [@Vladislav](https://forum.shopware.com/u/Vladislav)
#### Post date: [21. August 2020 um 15:13 UTC](https://forum.shopware.com/t/custom-product-box-no-data-in-the-storefront/65583/5 "2020-08-21T15:13:00Z")

</div>

up,

this var is empty in the product box element, how can I receive data&nbsp;from the product?

---

<div class="post-metadata">

### Author: ![petra\_p](https://avatars.discourse-cdn.com/v4/letter/p/46a35a/32.png) [@petra\_p](https://forum.shopware.com/u/petra_p)
#### Post date: [14. September 2020 um 12:56 UTC](https://forum.shopware.com/t/custom-product-box-no-data-in-the-storefront/65583/6 "2020-09-14T12:56:57Z")

</div>

I have the same problem!

---

<div class="post-metadata">

### Author: ![halfpint\_utopia](https://avatars.discourse-cdn.com/v4/letter/h/eb9ed0/32.png) [@halfpint\_utopia](https://forum.shopware.com/u/halfpint_utopia)
#### Post date: [6. November 2020 um 13:19 UTC](https://forum.shopware.com/t/custom-product-box-no-data-in-the-storefront/65583/7 "2020-11-06T13:19:37Z")

</div>

Did anyone find a solution? Please share, as I am stuck on the same problem. Thanks

---

<div class="post-metadata">

### Author: ![Tom\_Early](https://avatars.discourse-cdn.com/v4/letter/t/ee59a6/32.png) [@Tom\_Early](https://forum.shopware.com/u/Tom_Early)
#### Post date: [2. Dezember 2020 um 11:56 UTC](https://forum.shopware.com/t/custom-product-box-no-data-in-the-storefront/65583/8 "2020-12-02T11:56:21Z")

</div>

Hello,

I am having the same issue. Does anyone have an answer?

Thanks,

Tom

---

<div class="post-metadata">

### Author: ![halfpint\_utopia](https://avatars.discourse-cdn.com/v4/letter/h/eb9ed0/32.png) [@halfpint\_utopia](https://forum.shopware.com/u/halfpint_utopia)
#### Post date: [2. Dezember 2020 um 15:30 UTC](https://forum.shopware.com/t/custom-product-box-no-data-in-the-storefront/65583/9 "2020-12-02T15:30:43Z")

</div>

Hi, I am not sure if this will help, but it solved my issue. [https://stackoverflow.com/questions/62699616/shopware-6-cloning-cmselement-and-get-null-as-data/63131238#63131238](https://stackoverflow.com/questions/62699616/shopware-6-cloning-cmselement-and-get-null-as-data/63131238#63131238)

---

<div class="post-metadata">

### Author: ![Tom\_Early](https://avatars.discourse-cdn.com/v4/letter/t/ee59a6/32.png) [@Tom\_Early](https://forum.shopware.com/u/Tom_Early)
#### Post date: [2. Dezember 2020 um 18:30 UTC](https://forum.shopware.com/t/custom-product-box-no-data-in-the-storefront/65583/10 "2020-12-02T18:30:43Z")

</div>

Awesome. Where do I put that file? Thanks, &nbsp;Tom

---

<div class="post-metadata">

### Author: ![halfpint\_utopia](https://avatars.discourse-cdn.com/v4/letter/h/eb9ed0/32.png) [@halfpint\_utopia](https://forum.shopware.com/u/halfpint_utopia)
#### Post date: [3. Dezember 2020 um 07:48 UTC](https://forum.shopware.com/t/custom-product-box-no-data-in-the-storefront/65583/11 "2020-12-03T07:48:43Z")

</div>

I searched the platform for instances of **AbstractCmsElementResolver** and then mirrored the location in my plugin. So I added it to **Plugin/src/Core/Content/Media/Cms/Type** and used the namespace **Plugin\Core\Content\Media\Cms\Type**. I then added the service to my **Plugin/src/Resources/config/services.xml**.

I am not 100% about why this works, nor why I need to create a DataResolver, or if this applies only to when I copy an element, as when I [created a new custom element](https://docs.shopware.com/en/shopware-platform-dev-en/how-to/custom-cms-element) I did not have to create a resolver. If anyone has an answer to this, that would be great ![Halo](https://forum.shopware.com/plugins/CKEditor/plugins/smiley/images/halo.png "Halo")

---

<div class="post-metadata">

### Author: ![mondtyp34](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@mondtyp34](https://forum.shopware.com/u/mondtyp34)
#### Post date: [20. Mai 2021 um 21:06 UTC](https://forum.shopware.com/t/custom-product-box-no-data-in-the-storefront/65583/12 "2021-05-20T21:06:30Z")

</div>

wow thanks! I’m new to this and had the same issue. This has actually helped me
