Magento Questions Answered By Magento Experts

 

Welcome Guest. Sign in or Signup

1 Answers

How to include/execute external PHP file in Magento??

Asked by: 725 views , , ,
Questions

Hi,

I have created one php file that I need to execute as soon as customer press PLACE ORDER tab i.e. at the time of Order Creation.
So how should I include that file in Magento code? & more importantly exactly where?

That files contains Mysql query statement that fetch data from Magento tables & inserts it in newly created CUSTOM table.

So plz guide me…where exactly I should write code for the same
Or how can I execute that php file as soon as customer places order…

plz help…

Thanks

1 Answers



  1. Magento Expert on Mar 10, 2013 Reply

    Hi Pratik,
    My best suggestion is to to create a Magento module (extension) so that Magento core will recognize your code or scripts. I’ve search a basic tutorial for you as a reference on how to do it. Please read this tuts http://inchoo.net/ecommerce/magento/programming-magento/magento-hello-world-module-extension/.

    Good luck!

    0 Votes Thumb up 0 Votes Thumb down 0 Votes


Answer Question