init
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
|
||||
<type name="Magento\Customer\Controller\Account\CreatePost">
|
||||
<plugin name="esun_redirect_after_registration_coupon_grant"
|
||||
type="Esun\CustomerCoupon\Plugin\RedirectAfterRegistrationCouponGrant"
|
||||
sortOrder="20"/>
|
||||
</type>
|
||||
</config>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?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="customer_register_success">
|
||||
<observer name="esun_customer_coupon_registration_subscription"
|
||||
instance="Esun\CustomerCoupon\Observer\GrantRegistrationSubscriptionCoupon"/>
|
||||
</event>
|
||||
</config>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?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="standard">
|
||||
<route id="customer_coupon" frontName="customer-coupon">
|
||||
<module name="Esun_CustomerCoupon"/>
|
||||
</route>
|
||||
</router>
|
||||
</config>
|
||||
Reference in New Issue
Block a user