# Produktexport um Daten aus der Tabelle s\_arcticles\_details anreichern

**URL:** <https://forum.shopware.com/t/produktexport-um-daten-aus-der-tabelle-s-arcticles-details-anreichern/107000>\
**Category:** Shopware 5\
**Created:** [8. April 2025 um 06:17 UTC](https://forum.shopware.com/t/produktexport-um-daten-aus-der-tabelle-s-arcticles-details-anreichern/107000 "2025-04-08T06:17:37Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![quebag](https://avatars.discourse-cdn.com/v4/letter/q/c67d28/32.png) [@quebag](https://forum.shopware.com/u/quebag)\
**Post date:** [8. April 2025 um 06:17 UTC](https://forum.shopware.com/t/produktexport-um-daten-aus-der-tabelle-s-arcticles-details-anreichern/107000/1 "2025-04-08T06:17:37Z")

</div>

Guten Morgen,

ich möchte gerne einen Produktexport um einen Wert erweitern.

Dieser steht in der Datenbanktabelle „s\_articles\_details“  
im Feld „shippingfree“ und enthält entweder „0“ oder „1“ als Wert.

`s_articles_details` WHERE `shippingfree`

Im Export soll falls der Wert „1“ ist ein Eintrag erstellt werden.  
Dabei soll die „1“ dann ersetzt werden durch z.B. „versandkostenfrei“.

{if $sArticle.details.shippingfree = „1“} {$sArticle.details.shippingfree|replace:„1“:„versandkostenfrei“} {/if}

liefer leider keinen Eintrag.

---

<div class="post-metadata">

**Author:** ![drakon](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/drakon/32/7724_2.png) [@drakon](https://forum.shopware.com/u/drakon)\
**Post date:** [8. April 2025 um 09:49 UTC](https://forum.shopware.com/t/produktexport-um-daten-aus-der-tabelle-s-arcticles-details-anreichern/107000/2 "2025-04-08T09:49:38Z")

</div>

Ich würde das weniger umständlich machen und den Text wie folgend direkt in das Template schreiben:

`{if $sArticle.details.shippingfree = "1"}versandkostenfrei{/if}`

---

<div class="post-metadata">

**Author:** ![quebag](https://avatars.discourse-cdn.com/v4/letter/q/c67d28/32.png) [@quebag](https://forum.shopware.com/u/quebag)\
**Post date:** [8. April 2025 um 12:08 UTC](https://forum.shopware.com/t/produktexport-um-daten-aus-der-tabelle-s-arcticles-details-anreichern/107000/3 "2025-04-08T12:08:19Z")

</div>

Danke. Leider wird jetzt bei jedem Artikel „versandkostenfrei“ eingetragen.

Das Datenbankfeld hat den Typ int(1).

Ich glaub die Abfrage ist nicht korrekt.

---

<div class="post-metadata">

**Author:** ![quebag](https://avatars.discourse-cdn.com/v4/letter/q/c67d28/32.png) [@quebag](https://forum.shopware.com/u/quebag)\
**Post date:** [8. April 2025 um 12:27 UTC](https://forum.shopware.com/t/produktexport-um-daten-aus-der-tabelle-s-arcticles-details-anreichern/107000/5 "2025-04-08T12:27:09Z")

</div>

Produktexport im Backend unter Marketing (z.B. Feed für Google Merchant Center)

---

<div class="post-metadata">

**Author:** ![MrAle](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@MrAle](https://forum.shopware.com/u/MrAle)\
**Post date:** [8. April 2025 um 12:30 UTC](https://forum.shopware.com/t/produktexport-um-daten-aus-der-tabelle-s-arcticles-details-anreichern/107000/6 "2025-04-08T12:30:58Z")

</div>

Alles klar - hab mein Kommentar gelöscht

---

<div class="post-metadata">

**Author:** ![drakon](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/drakon/32/7724_2.png) [@drakon](https://forum.shopware.com/u/drakon)\
**Post date:** [8. April 2025 um 13:09 UTC](https://forum.shopware.com/t/produktexport-um-daten-aus-der-tabelle-s-arcticles-details-anreichern/107000/7 "2025-04-08T13:09:31Z")

</div>

Hi,  
es war spät. Es muss so heißen:  
`{if $sArticle.details.shippingfree == "1"}versandkostenfrei{/if}`

Das Template nutzt Smarty. Ggf. die 1 mit oder ohne Anführungszeichen testen. Da bin ich mir gerade nicht sicher.

= Variablenzuweisung  
== gleich

---

<div class="post-metadata">

**Author:** ![quebag](https://avatars.discourse-cdn.com/v4/letter/q/c67d28/32.png) [@quebag](https://forum.shopware.com/u/quebag)\
**Post date:** [8. April 2025 um 13:15 UTC](https://forum.shopware.com/t/produktexport-um-daten-aus-der-tabelle-s-arcticles-details-anreichern/107000/8 "2025-04-08T13:15:03Z")

</div>

Danke für die Mithilfe.

---

<div class="post-metadata">

**Author:** ![quebag](https://avatars.discourse-cdn.com/v4/letter/q/c67d28/32.png) [@quebag](https://forum.shopware.com/u/quebag)\
**Post date:** [8. April 2025 um 13:34 UTC](https://forum.shopware.com/t/produktexport-um-daten-aus-der-tabelle-s-arcticles-details-anreichern/107000/9 "2025-04-08T13:34:38Z")

</div>

Hier die Lösung:  
{if $sArticle.shippingfree}versandkostenfrei{/if}
