# 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:** 9

<div class="post-metadata">

**Author:** ![Patrick\_Stahl](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/patrick_stahl/32/7679_2.png) [@Patrick\_Stahl](https://forum.shopware.com/u/Patrick_Stahl)\
**Post date:** [12. Juni 2020 um 08:22 UTC](https://forum.shopware.com/t/aufruf-des-warenkorbs-im-en-sprachhop-gibt-seit-update-auf-5-6-7-fehler/67546/9 "2020-06-12T08:22:48Z")

</div>

Moin zusammen!

Dank der Hilfe von @drakon‍ konnte ich das Problem tatsächlich nachstellen und beheben! 🙂  
Vielen Dank dafür!  
Das betrifft entsprechend definitiv nicht alle Shops, sondern nur welche, die einen gewissen alten “Übersetzungs-Zustand” besitzen.

Eine entsprechende interne Änderungsabfrage ist bereits auf dem Weg.  
Für euch als mögliche Hotfixes bis dahin:

1. Die Länder-Übersetzungen einfach einmal öffnen und neu speichern  
**oder**

2. 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;

Die gesamte Methode sähe dann so aus:  
&nbsp;

```
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'];
}

```

Ich hoffe, dass euch dies erstmal weiter hilft! 🙂

Liebe Grüße,  
 ![Shopware](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/86c57fbace799dd4eb1f1b8a2d3bdc1733f0aea1.png "Shopware")&nbsp;Patrick Stahl

---

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