Shop Url in Plugin beziehen

Hallo, gibt es eine Funktion, die die URL des installierten Onlineshops aus einem Plugin heraus bezieht? Ich benötige die URL, um diese einer Schnittstelle zu übergeben. Danke Patrick

probier mal Shopware()-\>System()-\>sCONFIG["sBASEPATH"]

Hallo, danke für die Antwort. Leider klappt das nicht. Sobald ich $system = Shopware()-\>System(); in der Bootstrap ausführe, wird das Plugin nicht mehr angezeigt. Muss ich dazu noch was beachten? Viele Grüße, Patrick

Ok, wenn ich require\_once(Shopware()-\>OldPath() . 'engine/core/class/sSystem.php'); $system = new sSystem(); in der Plugin-Bootstrap aufrufe, bekomme ich zumindest ein Objekt zurück. Hier fehlt jedoch die URL zum Onlineshop. Nur das Attribut „sBasePath“ ist mit dem Pfad zum Shopware-Verzeichnis gesetzt. Fragt sich immernoch wie ich an die URL komme…

Sofern es sich um ein Frontendplugin handelt, gab es zumindest in 3.5 so etwas: Shopware()-\>Front()-\>Request()-\>getBaseUrl(); ich könnte mir vorstellen, dass das ggf. immer noch funktioniert.

Hallo, danke, funktioniert schon besser, obwohl die URL wird nicht komplett angegeben, nur das Unterverzeichnis zum Shop: Enlight\_Controller\_Request\_RequestHttp Object ( [\_paramSources:protected] =\> Array ( [0] =\> \_GET [1] =\> \_POST ) [\_requestUri:protected] =\> /onlineshops/shopware/ce408/backend/PluginManager/savePlugin?\_dc=1372932644987 [\_baseUrl:protected] =\> /onlineshops/shopware/ce408 [\_basePath:protected] =\> [\_pathInfo:protected] =\> /backend/PluginManager/savePlugin [\_params:protected] =\> Array ( [module] =\> backend [controller] =\> PluginManager [action] =\> savePlugin ) [\_rawBody:protected] =\> [\_aliases:protected] =\> Array ( ) [\_dispatched:protected] =\> 1 [\_module:protected] =\> backend [\_moduleKey:protected] =\> module [\_controller:protected] =\> PluginManager [\_controllerKey:protected] =\> controller [\_action:protected] =\> savePlugin [\_actionKey:protected] =\> action )