Skip to main content
edited body
Source Link
sumeet bajaj
  • 1.3k
  • 15
  • 50

I need to use events 2 places

1 - When customer verified email

 <event name="controller_action_predispatch_customer_account_confirm">
        <observer name="insert_customer_info_cova" instance="Sessions\Iqmetrix\Observer\InsertCustomerInfoCova"instance="Company\Namespace\Observer\InsertCustomerInfo"/>
    </event>

2 - When customer edit address information

<event name="customer_address_save_after">
        <observer name="update_customer_address_cova" instance="Sessions\Iqmetrix\Observer\UpdateCustomerAddressCova"instance="Company\Namespace\Observer\UpdateCustomerAddress" />
    </event>

It is working fine when customer registration page have no address fields but when we are showing address fields on registration page then this event is fire "customer_address_save_after"

So I need to block that "customer_address_save_after" event when customer register on registration page

Anyone know how to block that event ?

I need to use events 2 places

1 - When customer verified email

 <event name="controller_action_predispatch_customer_account_confirm">
        <observer name="insert_customer_info_cova" instance="Sessions\Iqmetrix\Observer\InsertCustomerInfoCova"/>
    </event>

2 - When customer edit address information

<event name="customer_address_save_after">
        <observer name="update_customer_address_cova" instance="Sessions\Iqmetrix\Observer\UpdateCustomerAddressCova" />
    </event>

It is working fine when customer registration page have no address fields but when we are showing address fields on registration page then this event is fire "customer_address_save_after"

So I need to block that "customer_address_save_after" event when customer register on registration page

Anyone know how to block that event ?

I need to use events 2 places

1 - When customer verified email

 <event name="controller_action_predispatch_customer_account_confirm">
        <observer name="insert_customer_info_cova" instance="Company\Namespace\Observer\InsertCustomerInfo"/>
    </event>

2 - When customer edit address information

<event name="customer_address_save_after">
        <observer name="update_customer_address_cova" instance="Company\Namespace\Observer\UpdateCustomerAddress" />
    </event>

It is working fine when customer registration page have no address fields but when we are showing address fields on registration page then this event is fire "customer_address_save_after"

So I need to block that "customer_address_save_after" event when customer register on registration page

Anyone know how to block that event ?

Source Link
sumeet bajaj
  • 1.3k
  • 15
  • 50

Magento 2 - What is the Event name after customer edit address only

I need to use events 2 places

1 - When customer verified email

 <event name="controller_action_predispatch_customer_account_confirm">
        <observer name="insert_customer_info_cova" instance="Sessions\Iqmetrix\Observer\InsertCustomerInfoCova"/>
    </event>

2 - When customer edit address information

<event name="customer_address_save_after">
        <observer name="update_customer_address_cova" instance="Sessions\Iqmetrix\Observer\UpdateCustomerAddressCova" />
    </event>

It is working fine when customer registration page have no address fields but when we are showing address fields on registration page then this event is fire "customer_address_save_after"

So I need to block that "customer_address_save_after" event when customer register on registration page

Anyone know how to block that event ?