Page 25 of 26 FirstFirst ... 1523242526 LastLast
Results 241 to 250 of 259
  1. #241
    Join Date
    Jan 2012
    Location
    Fort Worth, Texas
    Posts
    14
    Plugin Contributions
    0

    Default Re: custom forms - data collection

    Hey Jacque,

    Your form looks awesome! I'm trying to create something similiar. I see your page is called like other EZ pages via "main_page=SOMETHINGHERE", but I don't really understand how that works. Is "specialorder" a physical file?

    Also, do you write to the database? Do you only allow logged in users to submit?

    Thanks

    Paul

  2. #242
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    978
    Plugin Contributions
    6

    Default Re: custom forms - data collection

    I use code in this thread in conjunction with the About_Us mod in 139h and am wondering whether either needs to be upgarded for v150.

    However, due to the diverse applications of the code and mod, I am not seeking any specific solution as yet, but rather am just enquiring into the issue.

    TIA

  3. #243
    Join Date
    Jul 2011
    Posts
    23
    Plugin Contributions
    0

    Default Re: custom forms - data collection

    One more question

    what zen string do I use to add a standard state dropdown field to my form?

  4. #244
    Join Date
    Jul 2011
    Posts
    23
    Plugin Contributions
    0

    Default Re: custom forms - data collection

    Quote Originally Posted by clsmky View Post
    Ok sorry If I missed it, but I read this entire thread and couldnt find my answer.

    Has anyone figured out how to send a confirmation email to the customer after the "you message has been sent" success page?

    I have no complaints other than now I want to have a confirmation email sent. I'm using this for a physical catalog request (you can see it here) and I've got it to work perfectly. I get all the correct info and everything lands where its supposed to when its sent. It even checks if the patron is logged into the site to fill in some of the fields. Once the form is submitted, it goes to a page that states that the request has been sent. I would like it to send a confirmation email to the customer thanking them for their interest in the company and so on.

    How do I do that? Just need to be pointed in the right direction is all.
    I guess I should contribute to this thread since Dr. Byte was able to help me out so quickly.
    ------------------------------------------------------------------------------------------------------------

    under the header.php file for my form I added the following under the line that says
    PHP Code:
    $email_html nl2br($email_text); 
    This is my custom code:
    PHP Code:
    //assemble customer email contents:
          
    $customer_email_text 
            
    CUSTOMER_EMAIL_GREETING '' $full_name ',' "\n" .
            
    "\n" .
            
    CUSTOMER_EMAIL_BODY_TEXT "\n" .
            
    "\n" .
            
    CUSTOMER_EMAIL_BODY_QUESTIONS "\n" .
            
    "\n" .
            
    CUSTOMER_EMAIL_BODY_THANKS "\n\n" .
            
          
    $customer_email_text zen_output_string_protected($customer_email_text);
          
    $customer_email_html nl2br("\n" $customer_email_text); 
    then after the line that starts with "zen_mail(STORE_NAME...." I added the following:
    PHP Code:
    //send email to customer
          
    zen_mail($full_name$email_addressCUSTOMER_EMAIL_SUBJECT$customer_email_textSTORE_NAMESTORE_OWNER_EMAIL_ADDRESS, array('EMAIL_MESSAGE_HTML' => $customer_email_html), 'catalog_req'); 
    to my languages file I added:
    PHP Code:
    define('CUSTOMER_EMAIL_GREETING','Hello ');
    define('CUSTOMER_EMAIL_SUBJECT''Your Catalog is on its way!');
    define('CUSTOMER_EMAIL_BODY_TEXT''Thank you for your interest in our company and its products. We will mail out a copy of our 2011 catalog for you today and you should be receiving it in a matter of a few days. ');
    define('CUSTOMER_EMAIL_BODY_QUESTIONS''If you have any questions regarding our company or any of the products you see in the catalog or online, please feel free to contact us through this email address or call us toll free at <removed phone number>  .');
    define('CUSTOMER_EMAIL_BODY_THANKS''Thanks again and have a great day!'); 
    For the html email template (catalog_req) I simply made an html file that consists of a table containing our logo, information (just like a letterhead) and the $EMAIL_MESSAGE_HTML so that it would populate what is defined in the language files.

    If you want to create or take a look at my files, I can send them to you through email. I dont want to post them here because I originally worked off of a TM file (per my boss) that I completely hacked and virtually started from scratch. So most of the code is for my custom template but I don't mind sharing with those that want it anyway.

  5. #245
    Join Date
    Jun 2007
    Location
    Michigan
    Posts
    187
    Plugin Contributions
    0

    Default Re: custom forms - data collection

    WOW.... this 3 year old post, just MADE MY FREAKIN DAY

    I was able to finally create my contact page with a Dropdown in the Subject Line and have it actually show up in the email correctly.
    Thanks so much for posting. This COMPLETE THREAD HAS BEEN HEAVEN SENT!!

    Actual Contact Page:

    Click image for larger version. 

Name:	contact.JPG 
Views:	188 
Size:	44.7 KB 
ID:	10340


    This is the Email Rendering after I hit the send button:
    Click image for larger version. 

Name:	Email_Contact.JPG 
Views:	176 
Size:	29.5 KB 
ID:	10341


    If you like the *Event Date* little dropdown, I found it on another Zen Thread, but the script can be found at http://www.dynamicdrive.com/dynamici...oncalendar.htm

    ***OFFICIALLY TIME TO DONATE****
    But Where in the World is the Donate Button Now... gotta find it, Not use to this new format yet LOL

    ------------------------------------------


    Quote Originally Posted by cliffvt View Post
    Diva hope you're good today!! Yes, you guessed it, today I am struggling with "pull_down menus" - implemented this suggested code, but on the form it displays a blank drop-down menu. If I leave all fields blank and then press "Submit" , as expected, it brings up errors for all the other fields, NOT the drop-down one, but viola!, the pulldown field is magically populated. Any ideas on what I am doing wrong here, seeing that you've mastered it?

    here is my code:

    HEADER_PHP:
    TEMPLATE:
    Any ideas at all?

    Cheers

    Cliff
    Last edited by ljdream00; 20 Apr 2012 at 02:32 PM.

  6. #246
    Join Date
    Jul 2011
    Posts
    23
    Plugin Contributions
    0

    Default Re: custom forms - data collection

    Quote Originally Posted by ljdream00 View Post
    WOW.... this 3 year old post, just MADE MY FREAKIN DAY

    I was able to finally create my contact page with a Dropdown in the Subject Line and have it actually show up in the email correctly.
    Thanks so much for posting. This COMPLETE THREAD HAS BEEN HEAVEN SENT!!

    Actual Contact Page:

    Click image for larger version. 

Name:	contact.JPG 
Views:	188 
Size:	44.7 KB 
ID:	10340


    This is the Email Rendering after I hit the send button:
    Click image for larger version. 

Name:	Email_Contact.JPG 
Views:	176 
Size:	29.5 KB 
ID:	10341


    If you like the *Event Date* little dropdown, I found it on another Zen Thread, but the script can be found at http://www.dynamicdrive.com/dynamici...oncalendar.htm

    ***OFFICIALLY TIME TO DONATE****
    But Where in the World is the Donate Button Now... gotta find it, Not use to this new format yet LOL

    ------------------------------------------
    I'm glad you were able to get your form up and running like you wanted. I threw my arms up in the air once I did it.

  7. #247
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,264
    Plugin Contributions
    3

    Default Re: custom forms - data collection

    I just use Appnitro's MachForm system and can create ANY form you care to mention (and embed it on my ZC sites) in under 3 minutes...
    20 years a Zencart User

  8. #248
    Join Date
    Jun 2007
    Location
    Michigan
    Posts
    187
    Plugin Contributions
    0

    Default Re: custom forms - data collection

    Thanks Schoolboy for that info. I will keep that in mind next time. I think I saw it mentioned in this thread when I was reading, but when they said it was a paid form, I quickly let that thought go.

  9. #249
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,264
    Plugin Contributions
    3

    Default Re: custom forms - data collection

    The software costs a few dollars. Think of the HOURS it takes to create one custom form in ZC... If you value your time at $30 / hour, how much have you spent?
    20 years a Zencart User

  10. #250
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: custom forms - data collection

    Quote Originally Posted by schoolboy View Post
    The software costs a few dollars. Think of the HOURS it takes to create one custom form in ZC... If you value your time at $30 / hour, how much have you spent?
    And factor in the fact that anyone building sites for clients for money should be able/willing to invest in tools to assist the site build process. There are serveral tools I have invested in to assist me in my efforts.. this sounds like another one I shall investigate investing in.. Saving my time is worth the investment IMHO..
    Last edited by DivaVocals; 21 Apr 2012 at 09:52 PM.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

 

 
Page 25 of 26 FirstFirst ... 1523242526 LastLast

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

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