# Aufruf des Warenkorbs im EN-Sprachhop gibt seit Update auf 5.6.7 Fehler

**URL:** <https://forum.shopware.com/t/aufruf-des-warenkorbs-im-en-sprachhop-gibt-seit-update-auf-5-6-7-fehler/67546>\
**Category:** Allgemein\
**Created:** [9. Juni 2020 um 15:00 UTC](https://forum.shopware.com/t/aufruf-des-warenkorbs-im-en-sprachhop-gibt-seit-update-auf-5-6-7-fehler/67546 "2020-06-09T15:00:12Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![medeo](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@medeo](https://forum.shopware.com/u/medeo)\
**Post date:** [25. November 2020 um 10:21 UTC](https://forum.shopware.com/t/aufruf-des-warenkorbs-im-en-sprachhop-gibt-seit-update-auf-5-6-7-fehler/67546/14 "2020-11-25T10:21:41Z")

</div>

> [@Patrick Stahl schrieb:](https://forum.shopware.com/profile/1869/Patrick%20Stahl "Patrick%20Stahl")
> 
> 1. Nach den [hier](https://github.com/shopware/shopware/blob/5.6/engine/Shopware/Controllers/Frontend/Checkout.php#L2188-L2190) markierten Zeilen den folgenden Code anfügen:&nbsp;
> 
> if (!array\_key\_exists(‚allow\_shipping‘, $countryTranslations[$countryId])) {  
> return $allowedByDefault;  
> }

Hallo, Patrick!

Ich habe die o.g. Code hinzugefügt. Das hat aber leider nicht geholfen. Soll ich folgende Code auch hinzufügen? Wenn ja, wohin?

```
private function isShippingAllowed(int $countryId): bool
{
    $queryBuilder = $this->get('dbal_connection')->createQueryBuilder();

    $allowedByDefault = (bool) $queryBuilder->select('allow_shipping')
        ->from('s_core_countries', 'countries')
        ->where('countries.id = :countryId')
        ->setParameter(':countryId', $countryId)
        ->execute()
        ->fetchColumn();

    $countryTranslations = $this->get('modules')->sAdmin()->sGetCountryTranslation();

    if (!$countryTranslations) {
        return $allowedByDefault;
    }

    if (!array_key_exists($countryId, $countryTranslations)) {
        return $allowedByDefault;
    }

    if (!array_key_exists('allow_shipping', $countryTranslations[$countryId])) {
        return $allowedByDefault;
    }

    return $countryTranslations[$countryId]['allow_shipping'];
}

```

&nbsp;

---

_[View the full topic](https://forum.shopware.com/t/aufruf-des-warenkorbs-im-en-sprachhop-gibt-seit-update-auf-5-6-7-fehler/67546)._
