From f2c363b3d28d23b4f634642a5fe03c7b9f2c1dd7 Mon Sep 17 00:00:00 2001 From: Niklas Gruhn Date: Fri, 6 Sep 2019 17:47:05 +0200 Subject: [PATCH] Fix Composer install directory When installing the plugin with Composer, all files end up in: `Plugin/Local/Frontend/QuickPay_Shopware` Shopware is not able to detect the new plugin though because the directory doesn't match the plugin name (`QuickPayPayment`). Fixing this by defining a custom install directory using the `installer-name` field in `composer.json`. Also, according to the installation page, the plugin files should be moved to `custom/plugins` instead of `Plugin/Local/Frontend/`. See: https://learn.quickpay.net/helpdesk/en/articles/integrations/shopware/ This is done by setting the package type to `shopware-plugin` in `composer.json`. --- composer.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index ae6e3f6..e879602 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,10 @@ { "name": "quickpay/shopware", - "type": "shopware-frontend-plugin", + "type": "shopware-plugin", "require": { "composer/installers": "~1.0" + }, + "extra": { + "installer-name": "QuickPayPayment" } -} \ No newline at end of file +}