Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / General Questions / How can i create a link between my e-mail and the phone number info added in contact

How can i create a link between my e-mail and the phone number info added in contact

Locked

Started by marlake on 5 Jul 2008, 3:52 PM · Views: 1,952

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
5 Jul 2008, 3:52 PM
#1
marlake avatar

marlake

Zen Follower

Join Date:
Mar 2008
Posts:
126
Plugin Contributions:
0

How can i create a link between my e-mail and the phone number info added in contact

Hi there:

I have my contact_ud.php in
includes/language/english/contact_us.php

I jus want to add "phone number" and I added a define line asking for Phone Number following the same pattern as the other lines:

define('ENTRY_NAME', 'Full Name:');
define('ENTRY_EMAIL', 'Email Address:');
define('ENTRY_PHONE', 'Phone Number:');
define('ENTRY_ENQUIRY', 'Message:');

The I have troed to override in:
includes/language/english/mytemplate/contact_us.php

BUT no change is noticed in the website

I am overriding wrong??:(
THanks,
Marlake

5 Jul 2008, 4:00 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: How can i create a link between my e-mail and the phone number info added in contact

Just because you have defined the constant ENTRY_PHONE does not mean that it will be displayed on the page. You need to add code that displays the name and also requests an input to the form, and possibly add a field to the appropriate table in the database to store the phone number if that is what you want to do.

6 Jul 2008, 3:45 AM
#3
marlake avatar

marlake

Zen Follower

Join Date:
Mar 2008
Posts:
126
Plugin Contributions:
0

Re: How can i create a link between my e-mail and the phone number info added in contact

Hi there:
I added in the contact_us.php (overriding) a define line for entering the information for "Phone Number"

In tpl_contact_us_default.php (overriding) I also added codes for creating an entry for the phone number "*" indicating required information"

If i go to my website:
https://www.mhi-ramps-and-lifts.com
and I go to the contact us page (regardlessf If I am down for maintenance or not) I can see in the "contact us page" that the new entry for phone number have been created (is displayed) and the "*" for required information is also displayed.

When I enter information in the "contact us page" I get the message that the information has been sent successfully. HOWEVER my godaddy e-mail only gets the name of the person, the e-mail and message but NOT the phone number. Also that contact us page does not complain if I do not enter the phone number. So the "required information" for phone number is not working.

How can I connect My Godaddy e-mail with this new entry of information that I am requiring (Phone number)?

I have a linux server, my hosting is Godaddy. I have set my e-mail transport method to PHP option.
It seems to work perfect for all the rest of the information but no for my new entry (phone number). Where else I have to go to create that link between my e-mail and the "phone number" information?
Thanks,
Marlake

6 Jul 2008, 7:08 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: How can i create a link between my e-mail and the phone number info added in contact

Here's a discussion on adding custom fields to a similar type of form.
It also includes a packaged extra mod which could be used to build a separate entire page to collect and email information entered by customers:
http://www.zen-cart.com/forum/showthread.php?p=386482#post386482

There are also these contributions (which I found by searching for "contact") in the downloads area which might be useful as a model. Note that they're for various versions of Zen Cart and might need some adapting:
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=337
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=331

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

8 Jul 2008, 5:07 PM
#5
marlake avatar

marlake

Zen Follower

Join Date:
Mar 2008
Posts:
126
Plugin Contributions:
0

Re: How can i create a link between my e-mail and the phone number info added in contact

Thank you so much. !!!I have been able to create a phone number field on the contact us page, using the custom forms and adapting them to the latest zen-cart version.:clap::clap::clap:

Marlake