Monday, June 11, 2018

Magento associate customer with order after an placed order

Leave a Comment

My custom module observes the sales_order_place_after event, and creates a customer and associates the customer with the order by setting customerId for the order.

What works?

  • Order is placed
  • Customer is created
  • The customerId is updated in the order database

What doesn't work?

  • The customerId is instantly set back to NULL by another script

How can I find out what script updates the customerId to NULL again, after my observer is done running?

0 Answers

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment