Forums / Customization from the Admin / How to add an e-mail link in the Define Pages Editor?

How to add an e-mail link in the Define Pages Editor?

Views: 1,683

Results 1 to 8 of 8
28 Nov 2011, 8:21 AM
#1
atfzc avatar

atfzc

New Zenner

Join Date:
Nov 2011
Posts:
22
Plugin Contributions:
0

How to add an e-mail link in the Define Pages Editor?

I'm updating the Shipping & Returns page through the Define pages editor. I was just wondering how I could put my e-mail address in there as a link. I know customers could just go to the Contact Us page, but I thought it would be more convenient if I could put a link right on that page. Or how could I link it to go to the Contact Us page?

Thanks

28 Nov 2011, 8:24 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: How to add an e-mail link in the Define Pages Editor?

You can post links using raw HTML:

If you want to post your email address so it can be harvested by spammers, use this:
<a href="mailto:[email protected]">spammers please click this link to spam us with email</a>

If you want to put a link to your contact-us page, use this:
<a href="index.php?main_page=contact_us">click here to contact us</a>

.
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.

28 Nov 2011, 3:06 PM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: How to add an e-mail link in the Define Pages Editor?

DrByte is correct. If you want to broadcast your email address to every spammer in the world, then embed it in a link.

NOBODY (with any sense) does this anymore.

Your address will be grabbed by hundreds of BOTS out there, that look specifically for embedded email addresses, and you will NEVER be able to stop the v i a g r a and member-enlargement spam that will result.

20 years a Zencart User

28 Nov 2011, 5:42 PM
#4
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: How to add an e-mail link in the Define Pages Editor?

I went round and round on this with a client for whom I do some web site work. They had their site built by a "specialist" in their industry and their contact page lists the eMail addresses of each of their employees. In the end, I lost that battle because the "specialist" knows best.

The best way to learn is to try stuff. But, back it up first.

2 Dec 2011, 5:09 AM
#5
atfzc avatar

atfzc

New Zenner

Join Date:
Nov 2011
Posts:
22
Plugin Contributions:
0

Re: How to add an e-mail link in the Define Pages Editor?

Perfect!!! Thank for your help and the heads up on just embedding my e-mail address.

2 Dec 2011, 6:57 AM
#6
atfzc avatar

atfzc

New Zenner

Join Date:
Nov 2011
Posts:
22
Plugin Contributions:
0

Re: How to add an e-mail link in the Define Pages Editor?

Sorry, one more question. How would I put in a link to a pdf document. And where would be the best folder to store this document. I was thinking the Images folder.

2 Dec 2011, 7:52 AM
#7
drbyte avatar

drbyte

Sensei

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

Re: How to add an e-mail link in the Define Pages Editor?

Same concept:
<a href="folder/filename.pdf">click here to open PDF</a>

The /download/ folder already allows for PDF file access, so that's probably a good place to put it. If you want to use the /images/ folder, you'll need to add pdf support to the /images/.htaccess file, following the existing pattern. That topic is discussed in several other forum threads.

.
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.

6 Dec 2011, 2:48 AM
#8
atfzc avatar

atfzc

New Zenner

Join Date:
Nov 2011
Posts:
22
Plugin Contributions:
0

Re: How to add an e-mail link in the Define Pages Editor?

Cool. Thanks!