# Versandkosten-Vorschau anhand Land im Warenkorb

**URL:** https://forum.shopware.com/t/versandkosten-vorschau-anhand-land-im-warenkorb/69144
**Category:** Programmierung
**Created:** [24. August 2020 um 18:52 UTC](https://forum.shopware.com/t/versandkosten-vorschau-anhand-land-im-warenkorb/69144 "2020-08-24T18:52:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![cg\_hasse](https://avatars.discourse-cdn.com/v4/letter/c/bc79bd/32.png) [@cg\_hasse](https://forum.shopware.com/u/cg_hasse)
#### Post date: [24. August 2020 um 18:52 UTC](https://forum.shopware.com/t/versandkosten-vorschau-anhand-land-im-warenkorb/69144/1 "2020-08-24T18:52:16Z")

</div>

Hi Community,

ich habe an der folgenden Stelle einen Kommentar gefunden, der mich hoffen lässt, mein Feature damit umzusetzen:

> <https://github.com/shopware/platform/blob/67951ab37b000c1a6f739e6d4bb7c89c2a3a8665/src/Core/System/SalesChannel/Context/SalesChannelContextFactory.php#L431>

Also in der&nbsp;_Shopware\Core\System\SalesChannel\Context\SalesChannelContextFactory::loadShippingLocation($options, $context, $salesChannel)_ steht folgendes:

```
 "//allows to preview cart calculation for a specify state for not logged in customers"

```

Was ich aus dem Code ableiten kann ist, dass man wohl im&nbsp;„$options“ Array eine Länder-ID definieren kann, welche dem Warenkorb dann ein Land zur Versandkostenberechnung mitgibt. Die Frage, die ich dabei habe ist: Wie kann ich dem „$options“ Array, das beim Erstellen des SalesChannelContext genutzt wird, am besten einen weiteren Wert hinzufügen?

Wäre dankbar, wenn jemand eine Idee hat!  
LG
