Forums / Templates, Stylesheets, Page Layout / rebuilding Contact page from within an EZ page, is it possible?

rebuilding Contact page from within an EZ page, is it possible?

Started by tcarden on 18 Dec 2012, 6:32 PM · Views: 616

Results 1 to 5 of 5
18 Dec 2012, 6:32 PM
#1
tcarden avatar

tcarden

Zen Follower

Join Date:
Oct 2012
Posts:
282
Plugin Contributions:
0

rebuilding Contact page from within an EZ page, is it possible?

is there any reason, technical reason that i can't rebuild the contact page from inside of an EZ page?,

the default one is just so far off from the design the client wants that i'd rather just start from scratch,

im looking at the source code from the default one so as to include all necessary extra ext. files,

thanks

18 Dec 2012, 7:04 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: rebuilding Contact page from within an EZ page, is it possible?

ya, there is. Zen Cart doesn't process forms or PHP in EZ-Pages.

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

18 Dec 2012, 7:15 PM
#3
tcarden avatar

tcarden

Zen Follower

Join Date:
Oct 2012
Posts:
282
Plugin Contributions:
0

Re: rebuilding Contact page from within an EZ page, is it possible?

drag, ok. thanks

19 Dec 2012, 11:23 PM
#4
gjh42 avatar

gjh42

Black Belt

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

Re: rebuilding Contact page from within an EZ page, is it possible?

If you don't want to use the existing contact_us files to build your modified form, you can create a new define page (get the About Us mod from Plugins and change its filenames to your taste).

But I don't see how it's easier to create a whole new file structure than to gut and rebuild the existing contact files...

4 Apr 2013, 8:45 PM
#5
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Re: rebuilding Contact page from within an EZ page, is it possible?

In case anyone else is looking to add EZ-page content to their Contact Us page, there's a very simple way.

  1. Just comment out some code in /admin/ezpages.php somewhere around line 129:
//edit: allow Contact Us link AND EZ-page content at the same time
//$messageStack->add(ERROR_MULTIPLE_HTML_URL, 'error');
//$page_error = true;
  1. Now go to your EZ Page and add this to the Internal Link box: index.php?main_page=contact_us

  2. Now edit this file: /includes/templates/your_template/templates/tpl_contact_us_default.php
    Add the following code around Line 17, or wherever you want your EZ-page content to show. Make sure the pages_id matches your EZ-page number!

<?php $var_pageDetails = $db->Execute("select * from " . TABLE_EZPAGES . " where pages_id = 1");
echo $var_pageDetails->fields['pages_html_text']; ?>

Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.