Quantcast
Viewing all articles
Browse latest Browse all 36

Need some guidence…

In Magento, once Customer places Order, that data automatically goes to Sales_flat_order table or for item related information goes to sales_flat_order_item table etc.
Likewise I have selected some columns in Magento database & created 1 custom table in Magento database.
Now My requirement is, once customer places Order that data also must get copied to custom table along with Magento’s default table.

 

So for that I created one mysql query through joins  that will fetch all my needed data from Magento tables & insert it in my Custom table….
Now I am planning to create php file that includes my above query.

 

My doubt is how & where should I change My Magento code so that once customer places order, I will call to this file so that I can copy data in custom table through that query.
I get some reference as  When customer places order, it will use saveOrder function in Onepage model which is at Checkout/Model/Type/Onepage.php

 

So can anybody tell me what exactly I need to do in this scenario….Anyone having such scenario or sample code for the same…
Or having any other idea…

 

Plz guide me…

 

Thanks..

 

The post Need some guidence… appeared first on Magento Expert.


Viewing all articles
Browse latest Browse all 36

Trending Articles