We will be doing some site maintenance and need to take the site down for 10 minutes.

Site will go down at 19:00 UTC

Forums / Templates, Stylesheets, Page Layout / Contact US Page Duplication to Define Page_2

Contact US Page Duplication to Define Page_2

Locked

Started by mcarbone on 12 Dec 2009, 2:10 AM · Views: 1,008

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
12 Dec 2009, 2:10 AM
#1
mcarbone avatar

mcarbone

Zen Follower

Join Date:
Feb 2009
Location:
Simi Valley, CA
Posts:
99
Plugin Contributions:
0

Contact US Page Duplication to Define Page_2

Hi all,

I am trying to create a separate "Become a Retailer" form, separate from the Contact Us form. This Retailer request form will have more fields than the Contact_us as well.

What I've done to unsucessfully accomplish this (LOL) is copy the contents of

includes/languages/english/MY_TEMPLATE/contact_us.php
and pasted them into
includes/languages/english/MY_TEMPLATE/page_2.php

...and modified the output accordingly.

I also copies the content of:
includes/modules/pages/contact_us/header_php.php & pasted into
includes/modules/pages/page_2/header_php.php

in the above files, I changed lines 15 and 109 from this:

$define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_CONTACT_US, 'false');

to

$define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_PAGE_2, 'false');

I also copied the contents of :

includes/templates/MY_TEMPLATE/templates/tpl_page_2_default.php
and pasted into...
includes/templates/MY_TEMPLATE/templates/tpl_contact_us_default.php

All this yielded a blank "Become a Retailer" page.:lamo: This is a primative attempt. Can anyone tell me if I'm at least on the right path? Any further suggestions?

Thanks in advance for your help.

MC

13 Dec 2009, 2:43 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Contact US Page Duplication to Define Page_2

Might be as simple as the program you're using to copy and paste. If it's a WYSIWYG editor like Dreamweaver, or, worse, MS Word, it may be adding extra lines to the file. That's the most common cause of blank pages. Try running this:

http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=860

13 Dec 2009, 6:09 PM
#3
mcarbone avatar

mcarbone

Zen Follower

Join Date:
Feb 2009
Location:
Simi Valley, CA
Posts:
99
Plugin Contributions:
0

Re: Contact US Page Duplication to Define Page_2

Might be as simple as the program you're using to copy and paste. If it's a WYSIWYG editor like Dreamweaver, or, worse, MS Word, it may be adding extra lines to the file. That's the most common cause of blank pages.

That's a great suggestion, I should always try that first.
I use Notepad++ for any code edits, so I think i"m safe there (although...yes can cause problems that I'm no stranger to).

I ran the debug utility and it did not put any file in the cache folder. A theory is that the page is not completely blank, it still has the header and sideboxes. Maybe the utility "thought" there was nothing...no errors...to debug. Hmmm?

Do you think I'm on the right path?

Thanks so much!

13 Dec 2009, 6:11 PM
#4
mcarbone avatar

mcarbone

Zen Follower

Join Date:
Feb 2009
Location:
Simi Valley, CA
Posts:
99
Plugin Contributions:
0

Re: Contact US Page Duplication to Define Page_2

oops...by the way, a link would help.

here's the specific link to the "become a Retailer" page:

http://vapur.us/store/index.php?main_page=page_2

15 Jan 2010, 8:47 PM
#5
mcarbone avatar

mcarbone

Zen Follower

Join Date:
Feb 2009
Location:
Simi Valley, CA
Posts:
99
Plugin Contributions:
0

Re: Contact US Page Duplication to Define Page_2

I modified the Band_signup form from Dr Byte here: http://www.zen-cart.com/forum/showthread.php?t=4855.

Works like a charm!:smile: