shopware6

Require shopware 6 plugin via composer

痞子三分冷 提交于 2021-01-29 07:08:38
问题 I am developing a custom plugin for Shopware 6. It will not be sitting in Shopware Store but our own company repo on github. How can I make it get installed into custom/plugins instead of vendor when I run composer require plugin/name ? I tried setting up in plugin's composer "type": "shopware-plugin" and "type": "shopware-platform-plugin" but it still puts it into vendor . There is this: https://getcomposer.org/doc/faqs/how-do-i-install-a-package-to-a-custom-path-for-my-framework.md - I

How to extend Shopware 6 controller action

痴心易碎 提交于 2021-01-27 16:54:53
问题 I am building a plugin for Shopware 6 and cannot seem to find any documentation as to how to extend an existing controller action. I found this How to add an Action to Account Controller in Shopware but it seems to refer to Shopware 5 and I am not sure I can use it that way in Shopware 6. The controller action I want to extend is \Shopware\Storefront\Controller\AddressController::saveAddress - in my case I want to add custom address validation that would use a service in my plugin where a