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.
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.
.
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.
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'); ?>
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.
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.![]()
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?
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.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>
Jacque
Just knowledgeable enough to be dangerous.
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.
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
does it work well on 1.39h?
http://www.zen-cart.com/forum/showthread.php?p=386482
I have not tested the referenced mod in 139h, however, I have used it as a basis to creating several diverse forms, some of which include the upload facility discussed in this thread - all of which work on 139 without problem. I recommend you read this entire thread.
Another form worth comparing is the Return Authorisation mod
http://www.zen-cart.com/index.php?ma...roducts_id=433
thread: http://www.zen-cart.com/forum/showthread.php?t=39212
Hope this helps.