Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2010
    Posts
    897
    Plugin Contributions
    0

    Default Need help building a plugin for the Contact Us page!

    Duplicating the Contact Us form

    Hi,

    Here is what I'm doing:
    I want to create a separate form based on the standard Contact Us and then have it appear elsewhere (at the bottom of a Define Page that I create or, better, at the bottom of an EZpage that I create).

    In the second form, I will add the following modules:
    • Image to Contact - allows user to send images
    https://www.zen-cart.com/downloads.php?do=file&id=1708
    • Contact Us - Add Subject
    https://www.zen-cart.com/downloads.php?do=file&id=226
    • Add Phone Number to Contact Us
    https://www.zen-cart.com/downloads.php?do=file&id=221

    FYI, this second form will be used for a Trade-In Program page. If a client visits the site and they are interested in trading-in their old equipment, they can click on the page, read about the program, then send info about their equipment, including pictures.

    I would GREATLY prefer to go the EZpage route so this thing is not limited to the define page.

    If I can get some help doing this in a way that uses the template folders (so no core files change), I will package it up along with instructions and submit it to become as a plugin.

    +++++

    My plan is to:
    1. Backup my site
    2. Install the three plugins above
    3. Test modifications
    4. Download the new php files
    5. Revert the site php files back (not the sql that was added)
    6. Rename the modified files that were downloaded
    7. Modify the code in the renamed files so that they call on each other
    8. Create a new page (defined or EZ) that summons the alternate form


    I haven't been able to find a zc154 thread explains the mechanics of the Contact Us form in a simple way that can be followed.

    Here are my questions:
    • Can I do this w/o changing core?
    • Can I do this w/o additional SQL patching (other than what is in the other mods)?
    • Where do the elements of the Contact Us page live? I read somewhere that there are 7 files?
    • How do I get the new form to show up on an EZpage or Define Page?



    When I finish, this package could be useful to who need a second form.

  2. #2
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,930
    Plugin Contributions
    45

    Default Re: Need help building a plugin for the Contact Us page!

    Quote Originally Posted by Feznizzle View Post
    Duplicating the Contact Us form

    Hi,

    Here is what I'm doing:
    I want to create a separate form based on the standard Contact Us and then have it appear elsewhere (at the bottom of a Define Page that I create or, better, at the bottom of an EZpage that I create).

    In the second form, I will add the following modules:
    • Image to Contact - allows user to send images
    https://www.zen-cart.com/downloads.php?do=file&id=1708
    • Contact Us - Add Subject
    https://www.zen-cart.com/downloads.php?do=file&id=226
    • Add Phone Number to Contact Us
    https://www.zen-cart.com/downloads.php?do=file&id=221

    FYI, this second form will be used for a Trade-In Program page. If a client visits the site and they are interested in trading-in their old equipment, they can click on the page, read about the program, then send info about their equipment, including pictures.

    I would GREATLY prefer to go the EZpage route so this thing is not limited to the define page.

    If I can get some help doing this in a way that uses the template folders (so no core files change), I will package it up along with instructions and submit it to become as a plugin.

    +++++

    My plan is to:
    1. Backup my site
    2. Install the three plugins above
    3. Test modifications
    4. Download the new php files
    5. Revert the site php files back (not the sql that was added)
    6. Rename the modified files that were downloaded
    7. Modify the code in the renamed files so that they call on each other
    8. Create a new page (defined or EZ) that summons the alternate form


    I haven't been able to find a zc154 thread explains the mechanics of the Contact Us form in a simple way that can be followed.

    Here are my questions:
    • Can I do this w/o changing core?
    • Can I do this w/o additional SQL patching (other than what is in the other mods)?
    • Where do the elements of the Contact Us page live? I read somewhere that there are 7 files?
    • How do I get the new form to show up on an EZpage or Define Page?



    When I finish, this package could be useful to who need a second form.
    I would recommend doing a search of the forum for "custom form and data collection". It gives tons of info about how to construct customized forms for zen cart.

    Thanks,

    Anne

  3. #3
    Join Date
    Apr 2010
    Posts
    897
    Plugin Contributions
    0

    Default Re: Need help building a plugin for the Contact Us page!

    Quote Originally Posted by picaflor-azul View Post
    I would recommend doing a search of the forum for "custom form and data collection". It gives tons of info about how to construct customized forms for zen cart.

    Thanks,

    Anne
    Thank you, Anne! Finding good info already :)

  4. #4
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: Need help building a plugin for the Contact Us page!

    The problem with EZ pages is that they can not contain php (by default)

  5. #5
    Join Date
    Apr 2010
    Posts
    897
    Plugin Contributions
    0

    Default Re: Need help building a plugin for the Contact Us page!

    Hmm. Bummer.

    Ok.

    If I added my own defined page, how would I go about calling the alternate Contact Us routine?

  6. #6
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Need help building a plugin for the Contact Us page!

    I would take a look at the Ask A Question plugin - it uses identical code as the Contact Us page.

    It includes a define page

    It will help you to understand what and how that form works so you can build your own.

    rbarbour

  7. #7
    Join Date
    Apr 2010
    Posts
    897
    Plugin Contributions
    0

    Default Re: Need help building a plugin for the Contact Us page!

    Awesome, thanks rbarbour!

    Pretty sure I've used Ask A Question before, totally forgot about it. I'll grab a copy right now.

 

 

Similar Threads

  1. v154 Building a Plugin
    By adb34 in forum General Questions
    Replies: 11
    Last Post: 4 Jul 2015, 12:02 PM
  2. need help on contact page!!
    By shawnstar86 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 11 Jun 2009, 03:07 PM
  3. Building a new site... need help!
    By canemasters in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 6 Feb 2008, 01:20 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR