Forums / General Questions / Can I add the Address to "Contact Us" Page

Can I add the Address to "Contact Us" Page

Locked

Started by magicman on 19 Jan 2008, 12:24 AM · Views: 1,383

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
19 Jan 2008, 12:24 AM
#1
magicman avatar

magicman

Zen Follower

Join Date:
Oct 2007
Location:
MA, USA
Posts:
385
Plugin Contributions:
0

Can I add the Address to "Contact Us" Page

I installed the MOD for the Customer phone number in the "Contact Us" page successfully. Is there any way to add additional fields for Address, Title, City, ST, Zip???

Thank you, Sincerely, MagicMan

20 Jan 2008, 12:10 AM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Can I add the Address to "Contact Us" Page

These normally show by default, based on what you put in the Admin > Configuration > My Store > Store Address and Phone field.

Are you using a template that has removed them, or have you blanked them out in the Admin or when you installed originally?

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

20 Jan 2008, 1:11 PM
#3
magicman avatar

magicman

Zen Follower

Join Date:
Oct 2007
Location:
MA, USA
Posts:
385
Plugin Contributions:
0

Re: Can I add the Address to "Contact Us" Page

I know how to display "My" information.

I need additional input fields for the "Customers" information.

Instead of just the Customer name with the comment box, I would like additional boxes for the customer to type in their own address, city, state, zip, fax information before they submit the contact form to me.

There is a MOD called "Add Customer Phone Number", I installed it and it added another box for the customet to enter their phone number. How about the address etc?

Thank you, Sincerely, MagicMan

20 Jan 2008, 2:08 PM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Can I add the Address to "Contact Us" Page

Assuming that you're talking about the "Add Phone Number to Contact Us!" mod, then all you need do is copy the changes that were made to integrate phone numbers and adapt them for the other fields. If you wanted the pulldown type interface for state, you could copy the code form the create account module built into Zen Cart. Other than that the only wrinkle is that for logged in customers your SQL statement would need to join the address book table to customers table to get the address information for the customers default address id.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

20 Jan 2008, 2:24 PM
#5
magicman avatar

magicman

Zen Follower

Join Date:
Oct 2007
Location:
MA, USA
Posts:
385
Plugin Contributions:
0

Re: Can I add the Address to "Contact Us" Page

Yes, I sort of thought that was the case. However, when I searched the various files to find the code to add to this mod I was confused with respect to the correct .php file I would grab the info from as it was not clear cut like the "PhoneNumber" field.

In addition, there were a few other pages that needed to be modified in the script as well. I will have to play around with it a bit.

Thank you, Sincerely, MagicMan

28 Jun 2008, 2:59 PM
#6
kadesign avatar

kadesign

Totally Zenned

Join Date:
Feb 2005
Location:
New Jersey
Posts:
593
Plugin Contributions:
0

Re: Can I add the Address to "Contact Us" Page

Hi Kevin,

Were you ever able to do this?

Thanks,
Kelly

Kelly Ann
Raven Media, LLC