Results 1 to 10 of 259

Hybrid View

  1. #1
    Join Date
    Jul 2008
    Posts
    2
    Plugin Contributions
    0

    Default Re: custom forms - data collection

    Hi I wonder if anyone can help. I have downloaded this form and added it to my site http://www.jcraftz.co.uk/index.php?m...ge=send_direct. I would however like it to be an HTTPS page because ioof the nature of the information names and addresses etc. I have tried adding the code as suggested in this thread http://www.zen-cart.com/forum/showthread.php?t=100796 which worked and ensured the form was secure. But then the form would not send because it would not validate. I removed the code
    //force redirect to secure page
    if($_SERVER['SERVER_PORT'] != '443') { header('Location: https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); exit(); }
    and the form worked again.
    Can anyone help? I would rather that this form was sent securely. While I have the begging bowl out I wonder if anyone could possibly point me to a way of defaulting an item in the shopping cart to a field in this form.

    Thanks in advance
    Ned

  2. #2
    Join Date
    Jul 2008
    Posts
    2
    Plugin Contributions
    0

    Default Re: custom forms - data collection

    Well I have solved the validation problem. I should have put the code to redirect on the template for the form and not the form itself. I even managed to get the form to redirect correctly after submitting by copying some code from the shopping cart page. I feel so smug now.
    However, I would still like to be able to default some fields in the form so if anyone out there knows how to do that Please let me know.

  3. #3
    Join Date
    Apr 2008
    Posts
    39
    Plugin Contributions
    0

    Default Re: custom forms - data collection

    Well folks I have followed this tread closely but have one little question on the successful completion of the form and email process how can I add a link to either a category or product. We have several products that require a lot of information before purchase and after the form is complete we need to send the customer to a hidden product or category. How and where can I accomplish this.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: custom forms - data collection

    If I recall correctly, (I've not looked at this code in ages) after the zen_mail() function call, there is a zen_redirect() call. Change that call to go to the page you desire.

    Or, if there is a "thank you your message has been sent" page, add your link to that thank-you text. (this requires no "programming")
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Apr 2008
    Posts
    39
    Plugin Contributions
    0

    Default Re: custom forms - data collection

    Well it is your code so I am sure you are correct I will tinker with it a bit more.
    Mel

 

 

Similar Threads

  1. custom survey forms
    By cpk in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 2 May 2011, 05:07 PM
  2. Custom Forms
    By wwiii in forum General Questions
    Replies: 3
    Last Post: 11 May 2009, 05:51 PM
  3. Customer's seeing other users' data in forms
    By erikcw in forum General Questions
    Replies: 5
    Last Post: 30 Jan 2008, 11:30 PM
  4. Custom Collection of Attribute Data
    By Fastcar in forum General Questions
    Replies: 0
    Last Post: 15 Jan 2008, 01:01 PM
  5. Custom Forms - Help?
    By TurtleDove in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 9 Jun 2006, 02:46 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