# Offcanvas - Warenkorb

**URL:** https://forum.shopware.com/t/offcanvas-warenkorb/72695
**Category:** Programmierung
**Created:** [10. Februar 2021 um 17:20 UTC](https://forum.shopware.com/t/offcanvas-warenkorb/72695 "2021-02-10T17:20:56Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Federico](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/federico/32/14491_2.png) [@Federico](https://forum.shopware.com/u/Federico)
#### Post date: [10. Februar 2021 um 17:20 UTC](https://forum.shopware.com/t/offcanvas-warenkorb/72695/1 "2021-02-10T17:20:56Z")

</div>

Guten Abend zusammen,

ich weiß langsam nicht mehr weiter …

Ich hab ein Plugin geschrieben dass den Warenkorb erst freigibt wenn ein bestimmter Warenkorbwert erreicht wird, der in einer Regel definiert ist.

&nbsp;

Die offcanvas-cart.html.twig Datei sieht wie folgt aus:

```
 {% _sw\_extends_ '@Storefront/storefront/component/checkout/offcanvas-cart.html.twig' %} {% _set_ minimumOrderValueReached = false %} {% _for_ key,value _in_ context.ruleIds %} {% _if_ value=='8fa5811e599744d2a6ed94a66357ce9c' %} {% _set_ minimumOrderValueReached = true %} {% _endif_ %} {% _endfor_ %} {% _block_ component\_offcanvas\_cart\_flashbags %} 
class="flashbags"\> {% _for_ type, messages _in_ app.flashes %} {% _sw\_include_ '@Storefront/storefront/utilities/alert.html.twig' with { type: type, list: messages } %} {% _endfor_ %} {% _if not_ minimumOrderValueReached %} {% _sw\_include_ '@Storefront/storefront/utilities/alert.html.twig' with { type: "info", content: "checkout.minimumOrderValueNotReached"|trans|sw\_sanitize } %} {% _endif_ %} 
 {% _endblock_ %} {% _block_ component\_offcanvas\_cart\_actions\_checkout %} {% _if_ minimumOrderValueReached %} {{ parent() }} {% _endif_ %} {% _endblock_ %}

```

&nbsp;

Es hat alles super funktioniert, dann habe ich das Plugin auf einem anderen Shop installiert und ich bekomme jedesmal diese Fehlermeldung:

![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/6e410857341017851fcd4059414e1ab10f79f62e.png)

auch nach deinstallieren des Plugins bleibt die Fehlermeldung wenn ich auf ein Produkt gehe und dieses in den Warenkorb hinzufügen will.

Cache wurde auch mehrmals geleert …

&nbsp;

---

<div class="post-metadata">

### Author: ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)
#### Post date: [10. Februar 2021 um 17:27 UTC](https://forum.shopware.com/t/offcanvas-warenkorb/72695/2 "2021-02-10T17:27:14Z")

</div>

Dann schau doch erstmal unter var/log nach eiben Logeintrag. Dann kann man das sicherlich besser beurteilen.

---

<div class="post-metadata">

### Author: ![Federico](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/federico/32/14491_2.png) [@Federico](https://forum.shopware.com/u/Federico)
#### Post date: [10. Februar 2021 um 17:34 UTC](https://forum.shopware.com/t/offcanvas-warenkorb/72695/3 "2021-02-10T17:34:15Z")

</div>

Der Letzte Log eintrag war um 17:00 der Fehler trat aber erst um 18:00 Uhr ein, deswegen verstehe ich die Fehlermeldung auch nicht.

&nbsp;

[2021-02-10 17:01:35] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException: “PageController can’t be requested via XmlHttpRequest.” at /html/shopware/vendor/shopware/storefront/Framework/Routing/StorefrontSubscriber.php line 313 {“exception”:"[object] (Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException(code: 0): PageController can’t be requested via XmlHttpRequest. at /html/shopware/vendor/shopware/storefront/Framework/Routing/StorefrontSubscriber.php:313)"}   
[2021-02-10 17:01:43] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException: “PageController can’t be requested via XmlHttpRequest.” at /html/shopware/vendor/shopware/storefront/Framework/Routing/StorefrontSubscriber.php line 313 {“exception”:"[object] (Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException(code: 0): PageController can’t be requested via XmlHttpRequest. at /html/shopware/vendor/shopware/storefront/Framework/Routing/StorefrontSubscriber.php:313)"}   
[2021-02-10 17:02:59] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException: “PageController can’t be requested via XmlHttpRequest.” at /html/shopware/vendor/shopware/storefront/Framework/Routing/StorefrontSubscriber.php line 313 {“exception”:"[object] (Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException(code: 0): PageController can’t be requested via XmlHttpRequest. at /html/shopware/vendor/shopware/storefront/Framework/Routing/StorefrontSubscriber.php:313)"}   
[2021-02-10 17:03:58] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException: “PageController can’t be requested via XmlHttpRequest.” at /html/shopware/vendor/shopware/storefront/Framework/Routing/StorefrontSubscriber.php line 313 {“exception”:"[object] (Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException(code: 0): PageController can’t be requested via XmlHttpRequest. at /html/shopware/vendor/shopware/storefront/Framework/Routing/StorefrontSubscriber.php:313)"}

&nbsp;

---

<div class="post-metadata">

### Author: ![Federico](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/federico/32/14491_2.png) [@Federico](https://forum.shopware.com/u/Federico)
#### Post date: [15. Februar 2021 um 13:05 UTC](https://forum.shopware.com/t/offcanvas-warenkorb/72695/4 "2021-02-15T13:05:29Z")

</div>

–Update–

Schuld war ein gekauftes Plugin …
