thepixturethepixture MemberComments: 2 Received thanks: 0 Member since: April 2017

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?

Comments

  • ralfhralfh MemberComments: 11 Received thanks: 0 Member since: February 21

    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.

  • thepixturethepixture MemberComments: 2 Received thanks: 0 Member since: April 2017

    Have you tried { 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 value.

  • ralfhralfh MemberComments: 11 Received thanks: 0 Member since: February 21

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

  • VladislavVladislav MemberComments: 3 Received thanks: 0 Member since: April 20

    up,

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

  • petra_ppetra_p MemberComments: 2 Received thanks: 0 Member since: August 13

    I have the same problem!

Sign In or Register to comment.