init
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
|
||||
<type name="Magento\Customer\Model\Customer\DataProviderWithDefaultAddresses">
|
||||
<plugin name="login_as_customer_customer_data_provider_plugin"
|
||||
type="Stemcell\Customer\Plugin\DataProviderWithDefaultAddressesPlugin"/>
|
||||
</type>
|
||||
|
||||
<preference for="Magento\Customer\Block\Adminhtml\Edit\Tab\View" type="Stemcell\Customer\Block\Adminhtml\Edit\Tab\View" />
|
||||
</config>
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0"?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
|
||||
|
||||
<event name="adminhtml_customer_save_after">
|
||||
<observer name="save_salespersons_id" instance="Stemcell\Customer\Observer\SalespersonsCustomerSave" />
|
||||
</event>
|
||||
</config>
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" ?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
|
||||
<menu>
|
||||
<add id="Stemcell_Customer::salesperson_index" title="销售管理" module="Stemcell_Customer" sortOrder="9999" resource="Stemcell_Customer::salesperson_index" parent="Magento_Customer::customer" action="stemcell_customer/salesperson/index"/>
|
||||
<add id="Stemcell_Customer::lab_index" title="LAB ID 管理" module="Stemcell_Customer" sortOrder="9999" resource="Stemcell_Customer::salesperson_index" parent="Magento_Customer::customer" action="stemcell_customer/lab/index"/>
|
||||
</menu>
|
||||
</config>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" ?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
|
||||
<router id="admin">
|
||||
<route id="stemcell_customer" frontName="stemcell_customer">
|
||||
<module name="Stemcell_Customer" before="Magento_Backend"/>
|
||||
</route>
|
||||
</router>
|
||||
</config>
|
||||
Reference in New Issue
Block a user