Post by mixxin » Tue Jul 17, 2012 7:37 am

I would like to capture the IP Address from the contact form. I searched the forum and found a vqmod for a better contact form but it's not compatible with 1.5.3.1. Can a PHP guru give me the correct syntax on where to add this in catalog/controller/information/contact.php?

Sender's IP Address: ".$_SERVER['REMOTE_ADDR'];

Newbie

Posts

Joined
Thu Sep 23, 2010 9:03 am

Post by SAA » Tue Jul 17, 2012 6:01 pm

hi

edit:
file
catalog/controller/information/contact.php
line 21
$mail->setText(strip_tags(html_entity_decode($this->request->post['enquiry']." ip=".$_SERVER['REMOTE_ADDR'], ENT_QUOTES, 'UTF-8')));

Extensions Opencart http://quartzstore.com
Telework http://freelance-pro.com


SAA
New member

Posts

Joined
Thu Sep 03, 2009 1:50 am

Post by mixxin » Wed Jul 18, 2012 1:14 pm

Perfect SAA! Thank you!

Newbie

Posts

Joined
Thu Sep 23, 2010 9:03 am
Who is online

Users browsing this forum: No registered users and 37 guests