Proceed to Checkout Event for Magento?

I just started building a Magento module that bypasses the entire Magento validation process and instead sends the cart details to a third-party executing company via XML-RPC.

Do not get anywhere fast and may use a small guide. My understanding is that I have to create a module with an observer based on the event triggered by going to validation. The problem is that I can’t decide what the event will be, I went through the entire massive list here;

http://www.nicksays.co.uk/magento_events_cheat_sheet/

I tried:

checkout_submit_all_after - triggered after successful completion of order processing

checkout_cart_add_product_complete - works after adding a product to the basket

checkout_cart_save_before - triggered after adding a product to the basket

checkout_type_onepage_save_order - cannot make this work at all

checkout_onepage_controller_success_action - works after successful completion of the order

I don’t know if this means that I need to create a custom event or if you have a completely different and much better alternative to what I am doing. Creating and sending XML, I will remain on another question (I’m starting to understand that I can have my hands pretty well here), but any advice there was also gratefully appreciated.

Thanks for any help.

+7
source share
1 answer

controller_action_predispatch_checkout_onepage_index should be the event you are looking for. All controllers inherit the preDispatch method, which fires a general event for pre-distribution and a specific event based on the requested action path. The controller you want is in the checkout module and is called onepage with the default action index .

Mage_Core_Controller_Varien_Action::preDispatch() to see the corresponding code

+20
source

All Articles