# Versandkosten und Kilorate

**URL:** <https://forum.shopware.com/t/versandkosten-und-kilorate/61820>\
**Category:** Administration\
**Created:** [17. September 2019 um 16:06 UTC](https://forum.shopware.com/t/versandkosten-und-kilorate/61820 "2019-09-17T16:06:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![paddelboot](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@paddelboot](https://forum.shopware.com/u/paddelboot)\
**Post date:** [17. September 2019 um 16:06 UTC](https://forum.shopware.com/t/versandkosten-und-kilorate/61820/1 "2019-09-17T16:06:13Z")

</div>

Hallo,

Wir haben von unserem Ersatzteilzulieferer eine Liste bekommen mit Versandkosten und Kiloraten, also zB. 0-5 kg kostet 2,96 pro Kilo, 5-8 kg kostet 2,85 pro Kilo usw. Direkt in die Versandkostentabelle kann ich dies ja nicht übernehmen, sondern muss eine individuelle Berechnung erstellen. Wie genau das gehen soll, blicke ich nicht, auch nach dem Lesen von [Shopware 5 - Versand- & Zahlungsarten - Individuelle Versandkosten](https://docs.shopware.com/de/shopware-5-de/versand-und-zahlungsarten/individuelle-versandkosten).

Möglich ist es aber, oder?

&nbsp;

Grüße, Paddelboot

---

<div class="post-metadata">

**Author:** ![paddelboot](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@paddelboot](https://forum.shopware.com/u/paddelboot)\
**Post date:** [18. September 2019 um 08:27 UTC](https://forum.shopware.com/t/versandkosten-und-kilorate/61820/2 "2019-09-18T08:27:05Z")

</div>

Es ist möglich, mit einer Formel, die in etwa so aussieht:

```
SUM(
IF(d.weight * b.quantity < 5, 2.96*(d.weight * b.quantity),
IF(d.weight * b.quantity < 8, 2.55*(d.weight * b.quantity),
IF(d.weight * b.quantity < 10, 2.03*(d.weight * b.quantity),
IF(d.weight * b.quantity < 15, 1.82*(d.weight * b.quantity),
IF(d.weight * b.quantity < 20, 1.77*(d.weight * b.quantity),
IF(d.weight * b.quantity < 50, 1.62*(d.weight * b.quantity),
 1.41*(d.weight * b.quantity)
))))))
)

```

Wenn ich nun aber einen Artikel in den Warenkorb lege, wird mir dort zunächst Versandkosten = 0,00€ angezeigt. Erst wenn ich zB. einen weiteren Artikel hinzufüge oder Änderungen an der Versandart vornehme, werden die Kosten korrekt berechnet. Ein Bug?

---

<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:** [18. September 2019 um 08:32 UTC](https://forum.shopware.com/t/versandkosten-und-kilorate/61820/3 "2019-09-18T08:32:00Z")

</div>

Meinst Du den OffCanvas Warenkorb?&nbsp;Ja, dort besteht meines Wissens ein Bug. Die Versandkosten werden beim ersten Aufruf nicht angezeigt. Ich bin mir nicht sicher, ob das in den neueren Shopware-Versionen inzwischen gefixt wurde.

---

<div class="post-metadata">

**Author:** ![paddelboot](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@paddelboot](https://forum.shopware.com/u/paddelboot)\
**Post date:** [18. September 2019 um 08:34 UTC](https://forum.shopware.com/t/versandkosten-und-kilorate/61820/4 "2019-09-18T08:34:57Z")

</div>

\>Meinst Du den OffCanvas Warenkorb?

Ja, genau. Ist natürlich schade, wenn das tatsächlich ein offener Bug wäre. Bin derzeit noch auf der 5.5.8.
