1

I'm looking for event before any order placed. Need to do validation on observer.

https://www.mageplaza.com/magento-2-module-development/magento-2-events.html

If there is Bank Transfer then before clicked on "Place Order", If there is Paypal then Before went to Paypal.

Before it redirects to any third party Online/Offline it should be called.

I'm here <site url>checkout/#payment

  • do you get to know anything? – anujeet Apr 27 '17 at 10:07
3

Try this one

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
    <event name="checkout_submit_before">
        <observer name="unique_identifier" instance="ModuleName\ClassObserver" />
    </event>
</config>
2

You can use this event sales_order_place_before to run callback before customer placing order.

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.