Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2009
    Posts
    110
    Plugin Contributions
    0

    Default Only allow logged in customers to use contact form?

    I'm having trouble with people spamming my contact form. Is there a way to make it so that anyone who uses the form has to be a logged in customer?

    Thanks,
    Joanne

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Only allow logged in customers to use contact form?

    Are you really still using ZenCart version 138a

    You need to upgrade and read this post

    http://www.zen-cart.com/showthread.p...ort-Life-Cycle

    One can add a captcha to the contact us form
    Zen-Venom Get Bitten

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

    Default Re: Only allow logged in customers to use contact form?

    LOL yes I'm still using it because I'm worried that if I upgrade my modules won't work and will need to be installed all over again

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

    Default Re: Only allow logged in customers to use contact form?

    Problem is version 1.3.8 is insecure and susceptible to hackers. Better to take a good look at the mods you're using and decide if you really need them all, then upgrade, adding only those mods that seem essential.

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

    Default Re: Only allow logged in customers to use contact form?

    OK, I have a friend that does that kind of thing, so maybe I'll get her to update it for me - thanks for your help!!

    Hugs,
    Joanne

  6. #6
    Join Date
    Jul 2009
    Posts
    110
    Plugin Contributions
    0

    Default Re: Only allow logged in customers to use contact form?

    Quote Originally Posted by stevesh View Post
    Problem is version 1.3.8 is insecure and susceptible to hackers. Better to take a good look at the mods you're using and decide if you really need them all, then upgrade, adding only those mods that seem essential.
    I was able to figure out how to make them log in to send a contact us email on my own:

    In includes/modules/pages/contact_us/header_php.php

    Where this code is:

    Code:
        } else {
          $customer_email = NOT_LOGGED_IN_TEXT;
          $customer_name = NOT_LOGGED_IN_TEXT;
    Change it to this:
    Code:
        } else {
          zen_redirect(zen_href_link(FILENAME_LOGIN, '', 'SSL'));
    Worked like a charm

 

 

Similar Threads

  1. Allow Customers To Upload Images Using Contact Us Page?
    By CoolCarPartsOnline in forum General Questions
    Replies: 34
    Last Post: 4 Jan 2017, 05:00 PM
  2. Only allow USA Customers to Checkout
    By linnx in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 21 Jul 2009, 10:44 PM
  3. Allow only customers for US
    By arashb in forum Managing Customers and Orders
    Replies: 9
    Last Post: 22 May 2009, 09:48 PM
  4. new customers not logged in IE only?
    By fancy in forum Managing Customers and Orders
    Replies: 6
    Last Post: 24 Jan 2008, 12:21 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