Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2009
    Location
    Simi Valley, CA
    Posts
    100
    Plugin Contributions
    0

    Default 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:
    PHP Code:
    $define_page zen_get_file_directory(DIR_WS_LANGUAGES $_SESSION['language'] . '/html_includes/'FILENAME_DEFINE_CONTACT_US'false'); 
    to
    PHP Code:
    $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. 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

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default 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?ma...roducts_id=860

  3. #3
    Join Date
    Feb 2009
    Location
    Simi Valley, CA
    Posts
    100
    Plugin Contributions
    0

    Default 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!

  4. #4
    Join Date
    Feb 2009
    Location
    Simi Valley, CA
    Posts
    100
    Plugin Contributions
    0

    Default 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

  5. #5
    Join Date
    Feb 2009
    Location
    Simi Valley, CA
    Posts
    100
    Plugin Contributions
    0

    Default 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!

 

 

Similar Threads

  1. I cannot read what is written on the Contact us page a Define page
    By Marlake in forum Customization from the Admin
    Replies: 2
    Last Post: 25 Jun 2008, 02:02 AM
  2. Why can't I insert my PHP Mail Form into Define Pages Page_2????
    By DavidHojak in forum General Questions
    Replies: 14
    Last Post: 24 Feb 2008, 06:31 AM
  3. Contact Define page issues
    By mattys in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 9 Dec 2006, 08:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg