Quantcast
Channel: Neueste Diskussionen - Shopware Community Forum
Viewing all articles
Browse latest Browse all 14594

s_articles_supplier_attributes in frontend

$
0
0

wie bekommen wir werte von s_articles_supplier_attributes in hersteller seiten frontend?

ich hab ein backend plugin geschrieben der für hersteller eine extra textarea ins s_articles_supplier_attributes schreibt und diese wollen wir auf hersteller seite anzeigen.

die hersteller frontend template ist anscheinend frontend/listing/manufacturer.tpl (obwohl anders wo hersteller als supplier genannt wird...) und da sehe ich sachen wie:

{$manufacturer->getDescription()}

hab aber nichts gefunden wie wir die attribute erhalten können...

dann habe ich diese lustige ding (gefunden durch {debug}) probiert:

{foreach $sArticles as $a}
    {$a.supplier_attributes.core.extra_text
    {break}
{/foreach}

aber das sagt

Fatal error:  Cannot use object of type Shopware\Bundle\StoreFrontBundle\Struct\Attribute as array

was mache ich falsch?


Viewing all articles
Browse latest Browse all 14594


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>