# Hilfe benötigt: Integration von \[sale\_price\] in Produkt-Feed (Shopware 6)

**URL:** <https://forum.shopware.com/t/hilfe-benoetigt-integration-von-sale-price-in-produkt-feed-shopware-6/105957>\
**Category:** Shopware 6 (German)\
**Created:** [26. November 2024 um 15:37 UTC](https://forum.shopware.com/t/hilfe-benoetigt-integration-von-sale-price-in-produkt-feed-shopware-6/105957 "2024-11-26T15:37:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![simon.paint](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@simon.paint](https://forum.shopware.com/u/simon.paint)\
**Post date:** [26. November 2024 um 15:37 UTC](https://forum.shopware.com/t/hilfe-benoetigt-integration-von-sale-price-in-produkt-feed-shopware-6/105957/1 "2024-11-26T15:37:13Z")

</div>

Hallo zusammen,

ich benötige eure Hilfe bei der Anpassung meines Produkt-Feeds in Shopware 6. Aktuell habe ich folgenden Code-Snippet für meinen Produkt-Feed:

html

Code kopieren

```auto
<item>
    <g:id>{{ product.productNumber }}</g:id>
    <title>{{ product.translated.name|escape }}</title>
    <description>{{ product.translated.description|escape }}</description>
    <g:google_product_category>950{# change your Google Shopping category #}</g:google_product_category>
    {%- if product.categories.count > 0 -%}
        <g:product_type>{{ product.categories.first.getBreadCrumb|slice(1)|join(' > ')|raw|escape }}</g:product_type>
    {%- endif -%}
    <link>{{ seoUrl('frontend.detail.page', {'productId': product.id}) }}</link>
    {% if product.cover.media is defined %}<g:image_link>{{ product.cover.media.url }}</g:image_link>{% endif %}
    <g:condition>new</g:condition>
    <g:availability>
        {%- if product.availableStock >= product.minPurchase and product.deliveryTime -%}
            in_stock
        {%- elseif product.availableStock < product.minPurchase and product.deliveryTime and product.restockTime -%}
            preorder
        {%- else -%}
            out_of_stock
        {%- endif %}
    </g:availability>
    {% set price = product.calculatedPrice %}
    {%- if product.calculatedPrices.count > 0 -%}
        {% set price = product.calculatedPrices.last %}
    {%- endif -%}
    <g:price>{{ price.unitPrice|number_format(context.currency.itemRounding.decimals, '.', '') }} {{ context.currency.isoCode }}</g:price>
    <g:brand>{{ product.manufacturer.translated.name|escape }}</g:brand>
    <g:gtin>{{ product.ean }}</g:gtin>
    <g:mpn>{{ product.manufacturerNumber }}</g:mpn>
    <g:shipping>
        <g:country>DE</g:country>
        <g:service>Standard</g:service>
        {% if product.shippingFree %}
        <g:price>0.00 {{ context.currency.isoCode }}</g:price>
        {% else %}
        <g:price>4.95 {{ context.currency.isoCode }}{# change your default delivery costs #}</g:price>
        {% endif %}
    </g:shipping>
</item>

```

Ich möchte nun `[sale_price]` hinzufügen, um reduzierte Preise für Produkte im Feed anzuzeigen. Leider bin ich mir unsicher, wie ich dies korrekt implementiere. Gibt es eine Möglichkeit, den reduzierten Preis (`calculatedPrice.from`) einzufügen, wenn ein Rabatt aktiv ist?

Ich bin dankbar für jede Hilfe oder einen passenden Code-Schnipsel, der mir hier weiterhilft!

Vielen Dank im Voraus für eure Unterstützung!

---

<div class="post-metadata">

**Author:** ![MagShop](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@MagShop](https://forum.shopware.com/u/MagShop)\
**Post date:** [27. Februar 2025 um 11:56 UTC](https://forum.shopware.com/t/hilfe-benoetigt-integration-von-sale-price-in-produkt-feed-shopware-6/105957/2 "2025-02-27T11:56:35Z")

</div>

Lösung von kyote:  
[https://forum.shopware.com/t/streichpreis-im-google-shopping-feed/94905](https://forum.shopware.com/t/streichpreis-im-google-shopping-feed/94905)
