Magento Forum

   
[PROCESSING] Where can I insert my code when order change from new (pending) to processing ? 
 
Georges@Bitbol
Sr. Member
 
Avatar
Total Posts:  104
Joined:  2008-08-07
Paris, France
 

HI all,

I want to put some code when an order change from new to processing.
I found the changeState and setState method but it is not the right place for me.

I explain.

I want a code (used in admin and front) thaht will be executed after payment success (if Card payment is used), or after admin click on invoice button in admin (in the other case)

The aim of this code is to ckeck vi SOAP a databse and cancel invoice or not ?

I hope someone know where exactly is the best place for that.
I found some files but was not able to cancel invoice generation.

Thanks in advance.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Georges@Bitbol
Sr. Member
 
Avatar
Total Posts:  104
Joined:  2008-08-07
Paris, France
 

No one ?
Sure someone already done that before.

 
Magento Community Magento Community
Magento Community
Magento Community
 
mzentrale1
Guru
 
Total Posts:  731
Joined:  2007-12-06
Stuttgart, Germany
 

Hi,

therefor you have to extend the controllers, the admin controller for invoice and the frontend controller for sucess action.
Look for the used action and cutomize for your needs.

Cheers

Stefan

 
Magento Community Magento Community
Magento Community
Magento Community
 
LeeSaferite
Guru
 
Avatar
Total Posts:  322
Joined:  2007-08-31
Lake City, FL
 

Try reading about the Event system in Magento, that should get you started in the right direction.  If you do enough digging, you can solve most integration problems without hacking at the Magento core.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top