Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options answers only user 60921

Event/observer is used to work dynamically with Magento without altering the core code.

1
vote
You can use sales_model_service_quote_submit_success event you can save a value in the order table also. public function __construct( \Magento\Checkout\Model\Session $checkoutsession, \Magento\Sales …
answered Apr 23 by MSA
0
votes
Need to change as per below code config.xml <events> <sales_order_place_after> <observers> <Tbb_StockRegistrar_Model_Observer> <type>model</ …
answered Jul 8 by MSA
0
votes
Kindly use sales_quote_product_add_after event. It will be work on frontend as well as backend. For Magento 2.3 frontend use event checkout_cart_product_add_before Use Magento logger for debugging …
answered Apr 23 by MSA
1
vote
Use getData() method to get email $customer = $observer->getEvent(); $email=$customer->getData('email'); Updated answer: $CustomerModel = $objectManager->create('Magento\Customer\Model\Customer'); …
answered Jul 19 by MSA
0
votes
Declare this event name(custom_observer_name) in controller execute method $this->_eventManager->dispatch( 'custom_observer_name', [$this->getRequest()->getPar …
answered Jun 24 by MSA
2
votes
Try this $customer = $observer->getEvent()->getCustomer(); $email = $customer->getEmail(); $first_name = $customer->getFirstname(); $last_name = $customer->getLastname();
answered Jun 27 by MSA
1
vote
Yes, it is an interesting question. Many people may know about sales_order_place_after event. If you use this event, you can't use print_r() and exit() function. Otherwise, kindly use checkout_onep …
answered Apr 12 by MSA
1
vote
You can easily get customer details, get Billing details, get shipping details using below code public function __construct ( \Magento\Sales\Model\Order $order ) $this->order = $order; public …
answered Mar 21 by MSA