Page 8 of 26 FirstFirst ... 67891018 ... LastLast
Results 71 to 80 of 259
  1. #71
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: custom forms - data collection

    In reviewing the code, the problem of the HTML emails not being delivered properly ... is because the code was written for an older version of Zen Cart, which didn't support HTML emails at the time.

    The HTML portion of the emails needs to be added to the module.
    .

    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.

  2. #72
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: custom forms - data collection

    Here's a packaged version of the module, designed for v1.3.7 ... tested on v1.3.7.

    Please consider a donation to the Zen Cart team if you find it useful, as there are numerous hours invested in upgrading and writing and testing this form.
    Attached Files Attached Files
    .

    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.

  3. #73
    Join Date
    Oct 2007
    Posts
    8
    Plugin Contributions
    0

    Default Re: custom forms - data collection

    There's an error in the packaged module, in the file "tpl_band_signup_default.php".

    The first "<div" tag doesn't appear to be closed.


    <div class="centerColumn" id="bandSignupDefault">

    <h1 id="bandSignupDefaultHeading"><?php echo HEADING_TITLE; ?></h1>

    <?php if ($messageStack->size('band_signup') > 0) echo $messageStack->output('band_signup'); ?>

  4. #74
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: custom forms - data collection

    Right -- the initial div is closed at the end of the file after everything else in it is displayed.
    .

    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. #75
    Join Date
    Oct 2007
    Posts
    8
    Plugin Contributions
    0

    Default Re: custom forms - data collection

    Quote Originally Posted by DrByte View Post
    Right -- the initial div is closed at the end of the file after everything else in it is displayed.
    Could be. I picked up a little HTML over 10 years ago, and that's about it. I don't even know what a div tag is!

    But I had problems getting it to work, so I downloaded some PHP editors, and both reported an unclosed div tag. So I closed it and now it works.

  6. #76
    Join Date
    Oct 2007
    Posts
    8
    Plugin Contributions
    0

    Default Re: custom forms - data collection

    You were right.

    I finally went through my template file line by line, fixed a bunch of errors, and now have it working without adding the extra "</div>" tag.

    The PHP editor I have still reports an unclosed div, but it works anyway.

    And I even fixed some display problems in firefox.

  7. #77
    Join Date
    Apr 2005
    Location
    Spokane, Washington
    Posts
    372
    Plugin Contributions
    0

    Default Re: custom forms - data collection

    I have modified the form for my customers to make a request for special orders and have run into a snag.

    Upon trying to add more fields the page will not display correctly.
    Like so.... http://www.freshabundance.com/index....pecial%20order

    When I remove the additional fields it returns to the correct display.

    Here is the code, what am I missing?

    Code:
    <div id="specialorderContent" class="content">
    <fieldset id="specialorder-Info">
    <legend>Special Order Information</legend>
    <div class="alert forward"><?php echo FORM_REQUIRED_INFORMATION; ?></div>
    <br class="clearBoth" />
    
    <label class="inputLabel" for="band_name">Name of the Item:</label>
    <?php echo zen_draw_input_field('band_name', zen_output_string_protected($band_name), ' size="30" id="band_name"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
    
    <label class="inputLabel" for="band_genre">Who makes it?:</label>
    <?php echo zen_draw_input_field('band_genre', zen_output_string_protected($band_genre), ' size="30" id="band_genre"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
    
    <label class="inputLabel" for="band_country">12 Digit UPC Code:</label>
    <?php echo zen_draw_input_field('band_country', zen_output_string_protected($band_country), ' size="30" id="band_country"') ; ?> What is a <a href="<?php echo zen_href_link(FILENAME_PAGE_4); ?>" target="_blank">UPC Code?</a>
    
    <label class="inputLabel" for="band_city">Description:</label>
    <?php echo zen_draw_textarea_field('band_city',30, 4, zen_output_string_protected($band_city), 'id="band_city"') ; ?>
    
    <!--additional items -->
    
    <label class="inputLabel" for="item2_name">Name of the Item:</label>
    <?php echo zen_draw_input_field('item2_name', zen_output_string_protected($item2_name), ' size="30" id="item2_name"') ; ?>
    
    <label class="inputLabel" for="item2_manufacturer">Who makes it?:</label>
    <?php echo zen_draw_input_field('item2_manufacturer', zen_output_string_protected($item2_manufacturer), ' size="30" id="item2_manufacturer"') ; ?>
    
    <label class="inputLabel" for="item2_upc">12 Digit UPC Code:</label>
    <?php echo zen_draw_input_field('item2_upc', zen_output_string_protected($item2_upc), ' size="30" id="item2_upc"') ; ?> What is a <a href="<?php echo zen_href_link(FILENAME_PAGE_4); ?>" target="_blank">UPC Code?</a>
    
    <label class="inputLabel" for="item2_description">Description:</label>
    <?php echo zen_draw_textarea_field('item2_description',30, 4, zen_output_string_protected($item2_description), 'id="item2_description"') ; ?>
    
    
    </fieldset>
    When I get it all done and working, I'll repost it as a zipped file in case anyone wants to clean it up for and use it for their special orders.

    Jacque

    Just knowledgeable enough to be dangerous.

  8. #78
    Join Date
    Apr 2005
    Location
    Spokane, Washington
    Posts
    372
    Plugin Contributions
    0

    Default Re: custom forms - data collection

    I've made some changes and put the 2nd item in it's own fieldset, it makes it cleaner, though the formating still eludes me...
    http://www.freshabundance.com/index....pecial%20order

    Just knowledgeable enough to be dangerous.

  9. #79
    Join Date
    Apr 2005
    Location
    Spokane, Washington
    Posts
    372
    Plugin Contributions
    0

    Default Re: custom forms - data collection

    I've figured out the cause, it appears to be related to
    Code:
    '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'
    Which puts that little red "required information" star there.

    So, how do I remove or hide that little star where it is not needed?

    Just knowledgeable enough to be dangerous.

  10. #80
    Join Date
    Nov 2007
    Posts
    1
    Plugin Contributions
    0

    Default Re: custom forms - data collection

    welecome to exchange with digital-photo-frame.org

 

 
Page 8 of 26 FirstFirst ... 67891018 ... 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