# Probleme mit $.overridePlugin

**URL:** https://forum.shopware.com/t/probleme-mit-overrideplugin/63491
**Category:** Programmierung
**Created:** [11. Dezember 2019 um 18:57 UTC](https://forum.shopware.com/t/probleme-mit-overrideplugin/63491 "2019-12-11T18:57:14Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Lot](https://avatars.discourse-cdn.com/v4/letter/l/b5a626/32.png) [@Lot](https://forum.shopware.com/u/Lot)
#### Post date: [11. Dezember 2019 um 18:57 UTC](https://forum.shopware.com/t/probleme-mit-overrideplugin/63491/1 "2019-12-11T18:57:14Z")

</div>

**_Hallo,_**

**_ich bin gerade dabei, ein neues Plugin anzulegen._**

**_Ich habe aber gerade eben das Problem, ein bestehendes javascript-Plugin aus dem responsive-Theme zu “overriden”._**

**_Wenn ich die javascript-Datei im eigenen Theme einhänge und in der Theme.php eintrage, dann funktioniert das einwandfrei._**

**_Wenn ich sie aber im Plugin-Ordner ablege und über die “Pluginxyz.php” über onCollectJavascript Files bekanntmache, dann funktioniert der Override nicht. Eigenständige Funktionen in dieser Datei funktionieren jedoch. Die neue .js-Datei wird also korrekt eingebunden, es gibt aber ein Problem mit dem Override._**

**_Ich vermute, dass ich die Verzeichnisstruktur anders aufbauen muss, wenn ich Theme-Plugins überschreiben will, weiss aber nicht wie. Da habe ich keinen Hinweis gefunden._**

**_Die Verzeichnisstruktur im Plugin-Bereich stellt sich momentan so dar:_**

**_custom_**

**_&nbsp; &nbsp; plugins_**

**_&nbsp; &nbsp; &nbsp; &nbsp;EseomPlugin_**

**_&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Resources_**

**_&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;views_**

**_&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; frontend_**

**_&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\_public_**

**_&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; src_**

**_&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; js_**

**_&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jquery.ajax-variant.js_**

**_soll erweitern:_**

**_themes_**

**_&nbsp; Frontend_**

**_&nbsp; &nbsp; &nbsp;Responsive_**

**_&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;frontend_**

**_&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \_public_**

**_&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; src_**

**_&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;js_**

**_&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jquery.ajax-variant.js_**

&nbsp;

**_Kann mir hier jemand weiterhelfen?_**
