Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    May 2010
    Location
    Athens, Greece
    Posts
    292
    Plugin Contributions
    0

    help question Question about https in Contact Form

    Good day,

    I have purchased a dedicated IP address and an SSL Certificate which I haven't installed yet. Before installing the SSL Certificate, I tried to confirm that my Zen Cart installation is correctly configured for SSL support and followed the instructions in the book "e-Start Your Web Store with Zen Cart" to the letter.

    I have a local XAMPP installation and enabled SSL for the front-end store and the Admin area. With one exception, everything appears to work fine, that is the secure connection is automatically switching on and off as I enter and exit the login and checkout pages. As explained in the book, there are warnings about the validity of the certificate, but that's expected.

    The only exception is that the contact form seems to be insecure. I have my own custom contact form on page http://athenscollectibles.info/index...page=contactus and I originally thought that the different page name prevented SSL to be enabled. However, when I manually changed the page name in the address bar to contact_us (with an underscore), I was transferred to the default Zen Cart form but in http rather than https.

    Is there any change or addition required to the configure.php file to enable https in the contact page or is that impossible, in which case a customer might hesitate to enter personal details like email address in the form?

    A few lines from my configure.php file are as follows, in case someone finds an error or has a suggestion:

    PHP Code:
      define('HTTP_SERVER''http://www.example.com');
      
    define('HTTPS_SERVER''https://www.example.com');

      
    // Use secure webserver for checkout procedure?
      
    define('ENABLE_SSL''true');

    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
      // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
      
    define('DIR_WS_CATALOG''/teststore/');
      
    define('DIR_WS_HTTPS_CATALOG''/teststore/'); 
    Many thanks in advance for any assistance or guidance.

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Question about https in Contact Form

    Quote Originally Posted by Athens Collectibles View Post
    The only exception is that the contact form seems to be insecure. I have my own custom contact form on page http://athenscollectibles.info/index...page=contactus
    Change this to https://athenscollectibles.info/inde...page=contactus and it should be SSL encrypted.

    This is the 'http" vs "https" that makes the difference.

    Cheers
    Rod

  3. #3
    Join Date
    May 2010
    Location
    Athens, Greece
    Posts
    292
    Plugin Contributions
    0

    Default Re: Question about https in Contact Form

    Thank you for the quick reply Rod.

    This works, but only if the https is entered manually in the URL bar. What I was looking is for an automatic transition to https when the Contact Us link in the side box was clicked, like it happens when the Login link is clicked.

    I think I found the solution but would like somebody to confirm that my change is not bulls**t: I changed the two lines in the /includes/modules/sideboxes/my_template/information.php from

    PHP Code:
    if (DEFINE_CONTACTUS_STATUS <= 1) {
        
    $information[] = '<a href="' zen_href_link(FILENAME_CONTACTUS) . '"><img src="images/design/howtocontactus.png" alt="" />&nbsp;' BOX_INFORMATION_CONTACTUS '</a>'
    to
    PHP Code:
    if (DEFINE_CONTACTUS_STATUS <= 1) {
        
    $information[] = '<a href="' zen_href_link(FILENAME_CONTACTUS'''SSL') . '"><img src="images/design/howtocontactus.png" alt="" />&nbsp;' BOX_INFORMATION_CONTACTUS '</a>'
    Is that valid or should I despair? I know nothing of php but found something similar in the tpl_header.php that gave me the idea. If the above change is correct, does it mean that I can extend it to other pages, although I can't think of any at the moment.

  4. #4
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Question about https in Contact Form

    Quote Originally Posted by Athens Collectibles View Post
    I think I found the solution but would like somebody to confirm that my change is not bulls**t: I changed the two lines in the /includes/modules/sideboxes/my_template/information.php
    Seems to me that you found the perfect/ideal solution. Well done!!

    Cheers
    Rod.

    ps. I base my comments only on what I see.. the zencart devs will have a better insight as to any possible unforeseen side effects than I do, so if they say anything to the contrary you should take their word and not mine.
    If they say nothing then you can assume they agree with my comments :-)

  5. #5
    Join Date
    May 2010
    Location
    Athens, Greece
    Posts
    292
    Plugin Contributions
    0

    Default Re: Question about https in Contact Form

    If they say nothing then you can assume they agree with my comments :-)
    I hope it's because they agree and not that they haven't seen this thread

    Thank you again for your advice and have a nice evening. It should be quite late in your place now.

  6. #6
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Question about https in Contact Form

    Quote Originally Posted by Athens Collectibles View Post
    I hope it's because they agree and not that they haven't seen this thread

    Thank you again for your advice and have a nice evening. It should be quite late in your place now.
    Rest assured, they'll see it. They see everything

    Late? Nah... tis only 3:30am .... Time to call it a night I think.

    Cheers
    Rod

 

 

Similar Threads

  1. Contact Us Form question
    By Designzbylou in forum General Questions
    Replies: 10
    Last Post: 15 Apr 2010, 01:25 PM
  2. Contact Us Form Question
    By cslakans in forum General Questions
    Replies: 7
    Last Post: 17 Dec 2009, 02:32 AM
  3. This might be a silly question about the contact us form
    By Soul39 in forum General Questions
    Replies: 3
    Last Post: 16 Jan 2009, 08:40 PM
  4. Quick question about the contact form
    By doodlebee in forum General Questions
    Replies: 11
    Last Post: 14 Dec 2006, 02:26 AM

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