Questions tagged [event-observer]
Event/observer is used to work dynamically with Magento without altering the core code.
2,157 questions
0 votes
1 answer
16 views
sales_order_place_after event called before stripe redirect to website
I am using stripe for payment and all working fine if stripe payment done on website itself but if stripe is used for redirect to website for payment then the observer is not working as expected. ...
0 votes
0 answers
31 views
Magento 2 creates duplicate inventory_reservation entries on shipment, causing Salable Qty higher and Source Qty lower
I am facing an issue in Magento 2 (MSI enabled) where creating a shipment for an order creates two entries in the inventory_reservation table for the same SKU. This is causing Salable Quantity to be ...
0 votes
0 answers
42 views
How to transfer custom fields to new order when editing from admin panel
In Magento 2, when editing an order from the admin panel, Magento cancels the original order and creates a new one. I have added some custom fields to the sales_order table (these are not part of ...
0 votes
0 answers
56 views
Trying to split cart items Magento 2.4.7
I am having a module which gives the ability to cart with checkbox to select which items you want to proceed to checkout. Although I have an issue with Observer event and always in order I get all ...
0 votes
3 answers
78 views
Remover tax from cart
I can clear the Tax when the subtotal is below USD800 when the front-end currency was in USD. However, if changed to another currency (e.g. HKD), the subtotal will change to 3,336.17 (HKD) instead of ...
0 votes
1 answer
51 views
Prevent calling Observer
I have an observer to catch the event customer_save_after when user update the information. It works well. But somewhere in my code, I also have this $customer = $this->customerRepository->...
0 votes
2 answers
67 views
Magento2 | Recover order increment id from Observer of an Reorder
For the reorder function, I added an Observer in my custom module that allows me to extract the quote_id. Actually my real goal is to get the increment id of the order I am reordering for. Currently ...
0 votes
2 answers
86 views
Does observer runs in the background or frontend
I am trying to understand about the events and observers in magento. I created an observer to listen to an event in the checkout page. I have configured it and it triggers after the place order button ...
0 votes
1 answer
33 views
magento 2.4 is there a way to check whether customer is logged in after registration?
in my magento 2.4.4 I have placed two observers, one for intercepting the registration process (customer_register_success) and another one to intercept when the user logs in(customer_login). What I ...
-1 votes
1 answer
69 views
Magento 2 : Create event observer when order placed and updated [duplicate]
In Magento 2, How to create event and observer for the REST API when an order is placed or updated. Is this possible to create event and observer for REST API?. If not, could anyone provide me with ...
0 votes
1 answer
26 views
Get same product info while we use catalog_product_save_before and catalog_product_save_after
when i am using catalog_product_save_before and catalog_product_save_after this two event it will always return catalogue_product_save_before data. when I am trying to fetch the child id from the ...
0 votes
1 answer
72 views
Showing the product in category and search with Magento 2 Observer
I have defined an attribute in Magento 2. When I say Dont Show in Category in this attribute, I do not want the product to be shown in Category and Search. But I don't want to completely remove the ...
0 votes
0 answers
37 views
Custom Attribute not saving into the Sales_Order Table
This is my PLugin : <?php namespace Vendor\Module\Plugin; use Magento\Sales\Api\Data\OrderItemExtensionFactory; use Magento\Sales\Api\Data\OrderItemInterface; use Magento\Sales\Api\Data\...
0 votes
1 answer
51 views
how to save data to my custom column in customer_address_entity
i have made custom column called coord in customer_address_entity using db_schema.xml <!-- add coordinate to customer address entity --> <table name="customer_address_entity" ...
0 votes
0 answers
47 views
Magento2: Insert order grid data into a custom table using the sales_order_save_after event
I have created an observer with this event file. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events....