Snippet-Dateien über Plugin ändern

Hallo, ist es möglich die Snippet-Dateien über ein Plugin zu ändern bzw. zu überschrieben? Wenn ich direkt in snippets/backen/ Änderungen vornehme sind diese ja nicht updatesicher. Vielen Dank und viele Grüße

Vielleicht hilft dir das hier, müsstest du halt nur entsprechend erweitern: namespace foobar; class SnippetHelper { protected $namespace; protected $shopID; protected $localeID; function \_\_construct($namespace, $shopID, $localeID) { $this-\>namespace = $namespace; $this-\>shopID = $shopID; $this-\>localeID = $localeID; } function add($name, $value) { $sql = "INSERT INTO s\_core\_snippets (namespace, shopID, localeID, name, value) VALUES (?, ?, ?, ?, ?)"; Shopware()-\>Db()-\>query($sql, array($this-\>namespace, $this-\>shopID, $this-\>localeID, $name, $value)); } function getByName($namespace, $name) { $sql = "SELECT \* FROM s\_core\_snippets WHERE namespace=? AND name=?"; Shopware()-\>Db()-\>query($sql, array($this-\>namespace, $name)); } function getById($id) { $sql = "SELECT \* FROM s\_core\_snippets WHERE id=?"; Shopware()-\>Db()-\>query($sql, array($id)); } function remove($id) { $sql = "DELETE FROM s\_core\_snippets WHERE id=?"; Shopware()-\>Db()-\>query($sql, array($id)); } function removeByNamespace($id) { $sql = "DELETE FROM s\_core\_snippets WHERE namespace=?"; Shopware()-\>Db()-\>query($sql, array($this-\>namespace)); } }