1

I am researching about events and observers and I have a question about this event

When is this event launched and what is it for?

_merge_after

2

We can see the merge quote event:

\Magento\Quote\Model\Quote::merge()

This will create the new quote. We can use this event when we want to set some values to the new quote.

\Magento\Checkout\Model\Session::loadCustomerQuote()

        if ($this->getQuoteId()) {
            $this->quoteRepository->save(
                $customerQuote->merge($this->getQuote())->collectTotals()
            );
        }

[EDIT]

If we work on Magento EE, we can see some cases(Reward Points, Customer Balance) which used this event.

6
  • for example when add a customer to the quote?
    – Miguel
    Jun 15 '17 at 14:05
  • We can add more info to new quote after merging quote. Jun 15 '17 at 14:13
  • i need observe when a customer is added to a quote. For example you are not logged and create a car, then you login and append customer and quote. I need observe that.
    – Miguel
    Jun 15 '17 at 14:28
  • I have just updated my answer more details. Jun 22 '17 at 3:50
  • Did it mean it used when add any product in Quote ? or Quote is there and if we merge any new product with that Quote ? or something else which i missed ?
    – Mak David
    Jun 22 '17 at 5:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.