# Streichpreis bei erweiterten Preisen 2025

**URL:** https://forum.shopware.com/t/streichpreis-bei-erweiterten-preisen-2025/106295
**Category:** Shopware 6 (German)
**Created:** [17. Januar 2025 um 13:29 UTC](https://forum.shopware.com/t/streichpreis-bei-erweiterten-preisen-2025/106295 "2025-01-17T13:29:18Z")
**Posts on this page:** 3
**Page:** 2

<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: [31. Januar 2025 um 05:58 UTC](https://forum.shopware.com/t/streichpreis-bei-erweiterten-preisen-2025/106295/21 "2025-01-31T05:58:38Z")

</div>

Hey,

bei mir macht das tatsächlich keinen unterschied, es wird sich der günstigste Preis genommen.  
Was genau bei mir jetzt so anders ist weiß ich nicht weils auch eine neu installierte 6.6.9.0 ist.  
Am besten lösch ich das, bevor es noch mehr verwirrt.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/8/c/8cc8ca09b74a1945e7dba6a343fb544e4bd5546d.png)  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/9/d/9d757e598e173c3abc44eb9eb22696ab690d2297.png)

Grüße

---

<div class="post-metadata">

### Author: ![m.ebert](https://avatars.discourse-cdn.com/v4/letter/m/22d042/32.png) [@m.ebert](https://forum.shopware.com/u/m.ebert)
#### Post date: [31. Januar 2025 um 06:45 UTC](https://forum.shopware.com/t/streichpreis-bei-erweiterten-preisen-2025/106295/22 "2025-01-31T06:45:05Z")

</div>

Interessant, dass es bei dir klappt - wir haben dieselbe Version - genau das meine ich.  
Ich verstehe es nicht, warum es nicht bei mir klappt…

---

<div class="post-metadata">

### Author: ![Anotherone](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Anotherone](https://forum.shopware.com/u/Anotherone)
#### Post date: [31. Januar 2025 um 16:58 UTC](https://forum.shopware.com/t/streichpreis-bei-erweiterten-preisen-2025/106295/23 "2025-01-31T16:58:49Z")

</div>

Also ich habs im Standardtheme im 6.6.9.0 getestet und bei mir wird auch kein Streichpreis angezeigt. Hab mir den Code angesehen und da wird das unterbunden, wenn es ein „Ab“ Preis ist:

```auto
{% if isListPrice and not displayFrom and not displayFromVariants %}

```

Bin mir über den Sinn nicht ganz sicher, man kann es aber deaktivieren:

```auto
{% sw_extends '@Storefront/storefront/component/product/card/price-unit.html.twig' %}

{% block component_product_box_price %}
    <div class="product-price-wrapper">
        {% set price = real %}
        {% set isListPrice = price.listPrice.percentage > 0 %}
        {% set isRegulationPrice = price.regulationPrice != null %}

        <div class="product-cheapest-price{% if isListPrice %} with-list-price{% endif %}{% if isRegulationPrice and not displayFrom and displayFromVariants %} with-regulation-price{% endif %}{% if displayFrom and isRegulationPrice %} with-from-price{% endif %}">
            {% if cheapest.unitPrice != real.unitPrice and cheapest.variantId != product.id %}
                <div>{{ 'listing.cheapestPriceLabel'|trans|sw_sanitize }}<span class="product-cheapest-price-price"> {{ cheapest.unitPrice|currency }}{{ 'general.star'|trans|sw_sanitize }}</span></div>
            {% endif %}
        </div>

        {% if displayFrom or (displayParent and hasDifferentPrice and totalVariants|length > 1) %}
            {{ 'listing.listingTextFrom'|trans|sw_sanitize }}
        {% endif %}

        <span class="product-price{% if isListPrice %} with-list-price{% endif %}">
            {{ price.unitPrice|currency }}{{ 'general.star'|trans|sw_sanitize }}

            {% if isListPrice %}
                {% set afterListPriceSnippetExists = 'listing.afterListPrice'|trans|length > 0 %}
                {% set beforeListPriceSnippetExists = 'listing.beforeListPrice'|trans|length > 0 %}
                {% set hideStrikeTrough = beforeListPriceSnippetExists or afterListPriceSnippetExists %}

                <span class="list-price{% if hideStrikeTrough %} list-price-no-line-through{% endif %}">
                    {% if beforeListPriceSnippetExists %}{{ 'listing.beforeListPrice'|trans|trim|sw_sanitize }}{% endif %}

                    <span class="list-price-price">{{ price.listPrice.price|currency }}{{ 'general.star'|trans|sw_sanitize }}</span>

                    {% if afterListPriceSnippetExists %}{{ 'listing.afterListPrice'|trans|trim|sw_sanitize }}{% endif %}

                    <span class="list-price-percentage">{{ 'detail.listPricePercentage'|trans({'%price%': price.listPrice.percentage })|sw_sanitize }}</span>
                </span>
            {% endif %}
        </span>
        {% if isRegulationPrice %}
            <span class="product-price with-regulation-price">
                {% if isListPrice %}<br>{% endif %}<span class="regulation-price">{{ 'general.listPricePreviously'|trans({'%price%': price.regulationPrice.price|currency }) }}{{ 'general.star'|trans|sw_sanitize }}</span>
            </span>
        {% endif %}
    </div>
{% endblock %}

```

Vorher:

 ![Bildschirmfoto 2025-01-31 um 13.53.48](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/1/2/12b6ed95bfb69ff5ed08c0287058d89df3f219e4.png)  
Nachher:  
 ![Bildschirmfoto 2025-01-31 um 16.54.56](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/6/1/619d25b5dc641b1db55668a33dbad3e87e31b53d.png)

[Vorherige Seite](https://forum.shopware.com/t/streichpreis-bei-erweiterten-preisen-2025/106295.md?page=1)
