Add referrer data to order confirmation email for Magento shopping cart

Closed Posted Sep 28, 2011 Paid on delivery
Closed Paid on delivery

Hello,

I need help with a quick, simple addition that I would like to integrate into **Magento shopping cart**.

When a new order is made, Magento sends out an order confirmation email to the admin and the customer.

I would like this email to include referrer data that has already been captured, when sent to admin ONLY.

The referrer data is captured when a user enters the site via JS/php and the variables are:

**$adminBody .= "Referrer: $ref\r\n";

$adminBody .= "URL: $url\r\n";

$adminBody .= "IP: ".$_SERVER['REMOTE_ADDR']."\r\n";

$adminBody .= "OS: $os\r\n";

$adminBody .= "Browser: $browser $version\r\n";

$adminBody .= "Screen: $screenWidth x $screenHeight";**

What I need is this info to be sent to me when a new order is placed. Please note that the referrer info above is captured when the user submits a "contact us" form anywhere on the website. For this to be passed on to order info, you may need to include an event observer.

I'd prefer as few modifications as possible.

Please let me know how you would implement this and if it would include any mods to the Magento core files - i.e, is it upgrade-proof? Kindly let me know when bidding how you would solve this, and how many files would be modified.

The customer should NOT see any of the referrer data in their emails.

**

VERY IMPORTANT INFORMATION:

You will NOT have access to my live site, and you will need to use Magento ver. 1.4.0.1 (which I can provide to you).**

Let me know if any questions!

Best regards

JavaScript PHP XML

Project ID: #3601002

About the project

Remote project Active Oct 21, 2011