Zen Cart Logo
Forums / General Questions / Using EZpages instead of Defined for contact us

Using EZpages instead of Defined for contact us

Locked

Views: 859

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
25 May 2010, 11:52 PM
#1
feznizzle avatar

feznizzle

Totally Zenned

Join Date:
Apr 2010
Posts:
900
Plugin Contributions:
0

Using EZpages instead of Defined for contact us

Hi!

I have combed the forums for a while, cannot seem to find a reason not use EZpages instead of Defined pages. But I might have just found one!

It is my desire to abandon define_contact_us.php and just create one using EZpages. Why? Two reasons...

  1. Because the simple information dump at the top (my address and phone number w/ no format).
  2. Because it seems much easier to put an EZpage in the header (I admit I have not looked hard at this, see reason #1).

I have read this thread and I understand that this is not the "intended use" of EZpage.

But I want to be able to control pages ENTIRELY right from the admin page, therefore use of EZpages for everything makes sense.

As for Contact Us, I'd rather delete the information dump and create a 3 column table. First column will have the mailing address and warehouse address, second column will have phone numbers by department (Customer Service, Accts Payable, Accts Receivable, etc), and the third column will have a list of email addresses.

Then below all that will be the very simple form as it currently exists when you click on the Defined Contact Us.

QUESTION:
Where can I find the script that creates that form?

26 May 2010, 12:25 AM
#2
skipwater avatar

skipwater

Totally Zenned

Join Date:
Jun 2008
Location:
Washington, DC
Posts:
775
Plugin Contributions:
1

Re: Using EZpages instead of Defined for contact us

QUESTION:
Where can I find the script that creates that form?
/includes/templates/YOUR_TEMPLATE/templates/tpl_contact_us_default.php

Skip

26 May 2010, 12:31 AM
#3
drbyte avatar

drbyte

Sensei

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

Re: Using EZpages instead of Defined for contact us

And you can still use EZ-Pages to control the link in the header/footer by simply using the internal-page option to point to the contact_us page.

And, the only part of the contact-us page that is handled by the "define page" aspect is a small block of information. The define-page doesn't control the whole page, and has no capability for validating the inputs nor sending the emails.

26 May 2010, 12:33 AM
#4
feznizzle avatar

feznizzle

Totally Zenned

Join Date:
Apr 2010
Posts:
900
Plugin Contributions:
0

Re: Using EZpages instead of Defined for contact us

Most excellent, thanks Skip!

And I think I found an easier solution, just by editing that file. I deleted out the following code:

<?php if (CONTACT_US_STORE_NAME_ADDRESS== '1') { ?> <address><?php echo nl2br(STORE_NAME_ADDRESS); ?></address> <?php } ?>

Will this cause any problems? I think I can use EZpages to "link" the defined page into the header.

26 May 2010, 12:36 AM
#5
feznizzle avatar

feznizzle

Totally Zenned

Join Date:
Apr 2010
Posts:
900
Plugin Contributions:
0

Re: Using EZpages instead of Defined for contact us

Oh I didn't see your reply before I put mine up, DrByte... thanks for the input, will try!

9 Jul 2010, 1:55 PM
#6
rigel avatar

rigel

New Zenner

Join Date:
Jun 2010
Posts:
48
Plugin Contributions:
0

Re: Using EZpages instead of Defined for contact us

I had the same niggle. You can remove the offending item by using the admin config tools, under email options I think, but it still leaves a vacant line where the address used to be. I want to dispense with the contact page (defined) as well.

What I wanted to do was to move the form part to my own EZ page. I couldn't get the submit button to work.