Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Jul 2009
    Posts
    7
    Plugin Contributions
    0

    help question Remove Contact Us Form

    Hi all,

    I am pretty new to working with this stuff. I had my website created for me using a zen template, however I am now taking over the maintenance myself. You may see more of me now!

    I have a Contact Us page that has some custom content that I added through the define pages editor page. There is also the default contact us form hat comes from the tpl_contact_us_default page.

    Because I cannot get the email sending to work, I would like to just remove the form altogether, and leave only my custom content.

    I have found a few pages that claim to walk me through this, however so far it has not worked. I guess I don't remove the correct part, and wind up with a "page ended unexpectedly on line xx" syntax error.

    Any help would be appreciated. If I need to provide more information, or code, I would be happy to.

    Thanks everyone.

  2. #2
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Remove Contact Us Form

    Well, the quick fix is to add this to the bottom of your stylesheet
    #contactUsForm{display:none;}
    Yes you can edit the php files, but this works and if you ever want to put it back in then it is easy.

  3. #3
    Join Date
    Jul 2009
    Posts
    7
    Plugin Contributions
    0

    Default Re: Remove Contact Us Form

    In my templates/template/CSS folder I have a number of files.

    style.css
    style_companyname.css
    stylesheet.css
    stylesheet_css_buttons.css
    print_stylesheet.css

    I added that piece of code to the top three, and still the form appears. I just added it at the bottom before any ending argument line.

    Where did I mess up? Is there another place on my site where this might be called from. If I View Source on the page, these seem to be the only ones called.

    Thanks

  4. #4
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Remove Contact Us Form

    well, it should work in the bottom of the main stylesheet, stylesheet.css. (works fine on my test site - but style.css and style_companyname are unique to your site by the looks of it) Can you post a link to your site and we'll see why it isn't playing the game?

    cheers

  5. #5
    Join Date
    Jul 2009
    Posts
    7
    Plugin Contributions
    0

    Default Re: Remove Contact Us Form

    Yes, of course.

    http://agcables.ca/catalog/index.php...age=contact_us

    This is the page in question.

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

    Default Re: Remove Contact Us Form

    Just a suggestion, but I would leave the stock Contact Us form, remove the part you added (which contains email addresses in the clear - an open invitation to spammers) and fix the email issues.

  7. #7
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Remove Contact Us Form

    I agree with Stevesh.

    However, if you still want to go this route the first thing you should do is make sure that your links are not such tasty spam-bait. Have a look at : http://www.ianr.unl.edu/email/encode/ which will help.

    Then:

    Your site has been edited a bit so my first suggestion will not play the game, I am afraid. The fieldset that exits in the default version does not exist in yours so setting display:none has no effect! Sorry, but that is why URL is so useful.

    So, if you really want to go this route, then you are going to have to edit a php file. The file that you are after is:

    includes/templates/yourtemplate/templates/tpl_contact_us_default.php

    If you are struggling getting that to work then you can post the whole of this file on the forum as yours is evidently different to to default version. You will have to zip it before attaching it to a post.

  8. #8
    Join Date
    Jul 2009
    Posts
    7
    Plugin Contributions
    0

    Default Re: Remove Contact Us Form

    I am at a loss. I think a part of this page is calling the define page, which is what I modify in Zen Cart itself. But I cannot tell which part of the code relates to the form. I am all new to PHP.

    Thanks for your help with this. I may hijack my own thread with some more questions shortly!
    Attached Files Attached Files

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

    Default Re: Remove Contact Us Form

    If you really want to do this, it looks like removing (or commenting out) lines 48 through 78 in that template file will remove the form, but leave the stuff you entered in define_contact_us. Back up your file somewhere first, in case it doesn't work for your installation.

  10. #10
    Join Date
    Jul 2009
    Posts
    7
    Plugin Contributions
    0

    Default Re: Remove Contact Us Form

    Something odd happened. I put the open comment code ( /* ) at the start of line 48, and the close comment code ( */) at the end of line 78

    All I got was my contact form still there, with those codes visible in my web browser.

    How did I mess that up?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139h How to remove pre-filled email address on Contact Us form?
    By jostar in forum General Questions
    Replies: 23
    Last Post: 24 Jan 2012, 06:38 PM
  2. Contact US page + One more Contact FORM :blink:
    By Orange Wacko in forum Managing Customers and Orders
    Replies: 0
    Last Post: 21 Jul 2009, 10:29 PM
  3. SPAM from ‘Contact Us’ form, even though form is removed
    By Beer_man in forum General Questions
    Replies: 5
    Last Post: 3 Dec 2008, 02:40 AM
  4. Replies: 6
    Last Post: 31 Oct 2008, 04:31 PM
  5. Remove form from Contact Us?
    By lifeforce in forum General Questions
    Replies: 7
    Last Post: 30 Oct 2008, 11:56 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