Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add Extra Fields In contact Us Page


Get-Wireless 2

Recommended Posts

I would like to add a couple of extra fields in the contact us page.

 

Can anybody please tell me which and where to edit the files.

 

Regards

Link to comment
Share on other sites

I would like to add a couple of extra fields in the contact us page.

 

Can anybody please tell me which and where to edit the files.

 

Regards

Hi,

 

try these contribs:

 

http://www.oscommerce.com/community/contri...arch,contact+us

http://www.oscommerce.com/community/contri...arch,contact+us

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

Thanks Monica,

 

I have now managed to get what I wanted plus a little extra :D

 

I combined

contact_us_registered.zip

and parts of

Contact_us enhancement v1-1.zip

 

Also what I have done is added an IP recorder on the form taken from

More_useful_contact_us_1.zip

 

However I would like to try and make it so that the user cant just delete their IP address

Link to comment
Share on other sites

is this contrib's IP recorder in an input field?

Checkout the one used for reviews (also in contrib section), it records the IP, just letting the person know it did. No entry field to manipulate ...

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

is this contrib's IP recorder in an input field?

Checkout the one used for reviews (also in contrib section), it records the IP, just letting the person know it did. No entry field to manipulate ...

 

 

Hi Thanks I have now installed that whole contrib hehe.

 

How ever my original problem of logging the ip of a person using the contact us form.

The IP contrib that I added doesnt use an input field, It just puts their IP address into the message body which the user can either edit or delete.

 

Regards

Shaun

Link to comment
Share on other sites

Hi Thanks I have now installed that whole contrib hehe.

 

How ever my original problem of logging the ip of a person using the contact us form.

The IP contrib that I added doesnt use an input field, It just puts their IP address into the message body which the user can either edit or delete.

 

Regards

Shaun

 

nah, that's useless .. do not add it there.

 

add it as a hidden form field and then in the php code right before sending the email

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

nah, that's useless .. do not add it there.

 

add it as a hidden form field and then in the php code right before sending the email

 

 

Lionel Blair and Una Stubs please AKA give us a clue

 

I dont know what or where the code I need to add.

 

I did try this in catalog\contact_us.php

 

			  <tr>
			<input type="hidden" name="ipaddress" value="<?php echo $ipaddress; ?>">
//IP recorder start
	$ipaddress = $HTTP_SERVER_VARS["REMOTE_ADDR"];
	$ip = "\n\n IP: " . $ipaddress;
	$content = $HTTP_POST_VARS['enquiry'];
	$content_ip = $content . $ip;
	$enquiry = tep_db_prepare_input($content_ip);
//IP recorder end
	<?php echo $ipaddress ?>
		  </tr>

Link to comment
Share on other sites

Have manged to get

contactip.gif

 

 

I just need to figure out how to get the IP Address in there now

Link to comment
Share on other sites

Have manged to get

contactip.gif

I just need to figure out how to get the IP Address in there now

 

 

Please share when done. :)

BACKUP your current files before editing. Did I mention to BACKUP your current files, first?

 

"I'm not a hero, I'm a firefighter; it is my job to save lives. I'm a Jesus Christ Firefighter saving souls from the flames!"

 

Installed contribs: Almost XP Buttons *** Attribute Sort *** Auto Thumbnail Change *** Column Product Listing (for SPPC v4.0) *** Contact Us Registered *** Country-State Selector 1.3.3J *** CC# Db Mask 1.3 *** Email Order Clickable Link *** Extra Images *** Linkpoint API CVM *** Loginbox Best *** New Spiders *** New Attrib Mgr v.5.0 w/ New Attrib Include *** Multi Product Update *** MySQL Cron *** Pricing per Category *** Product Listing in Columns v2.2 [later upgraded to CPL(SPPC)] *** Product Sort v1.6 *** Seperate Pricing Per Customer v4.15 *** Simple Down for Maintenance [Gokou] *** Ultimate_SEO_URLs_v2.2.2 *** UPS Worldship Export 1.3 *** Welcome Email username & password

Link to comment
Share on other sites

Please share when done. :)

 

Well I got it to display the IP Address but only after the form had been filled in incorrectly and the page had refreshed.

 

 

I have killed and in the process of reviving my database at the moment so this is now of very low importance to me.

 

Incidently I get the following error when trying to go to the admin section of my store. Front end seems ok.

 

1046 - No database selected

 

select configuration_key as cfgKey, configuration_value as cfgValue from configuration

 

[TEP STOP]

 

 

I believe this happend because I was setting up an automated mysql backup and noticed the name of the DB was wrong. I had copied a database to make a testing ground before putting any files onto my live store (Good idea I thought) but when the auto sql was mailed it had the old DB name in. so I trollied everything and am building it up from scratch but cant seem to get in to the admin section :'(

Link to comment
Share on other sites

  • 1 month later...

Just wondering if everyone has managed to sort their pages out? As I've managed to add a number of optional fields/text boxes and to display the IP address in the email.

 

I'm currently working on alerts for several boxes, but not having much luck on that side as no one has made any replies to my requests for help (Click here for my post Though I've changed my code since this post). However I've found a chap on another forum who may be able to sort my alert problems be it at a cost.

 

Going back to the IP address. I haven't tried to display it deliberately on the site (as it appears in the message box), but I did find the placement of the ip address code, makes a difference to its effectiveness and where it appears.

 

The alerts are for these Full Name: E-Mail Address: Postcode: Country: and Phone Number:. I then have four optional text boxes, with 2 pre-set dropdown options, and obviouly I also have the large message box.

 

Steve

____________________________________________________________________

____________________________________________________________________

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...