Zen Cart Logo
Forums / All Other Contributions/Addons / custom forms - data collection

custom forms - data collection

Sticky

Views: 221,970

Results 61 to 80 of 259
13 Apr 2007, 2:09 PM
#61
motti avatar

motti

Zen Follower

Join Date:
Feb 2007
Location:
Los Angeles
Posts:
348
Plugin Contributions:
0

custom forms - data collection

Hi

PLEASE HELP

i can't find the thread supporting a mod i just download it call ;

Contact Information Sidebox
Author: Clyde Jones
Version: 1.0.1
Zen Cart™ Version: v1.3.7
Update added on Jan 31 2007

i did install it and folow the instructions ( as much that i know ) and it is not showing up

www.tiledepot.us/store

27 May 2007, 4:39 PM
#62
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: custom forms - data collection

Wow ... there seem to be a lot of posts on this topic. Just to inform you that I have just finished building the contribution on this subject as it will be published really soon in order to facilitate users task. :wink2:

27 May 2007, 8:19 PM
#63
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: custom forms - data collection

motti:

Hi

PLEASE HELP

i can't find the thread supporting a mod i just download it call ;

Contact Information Sidebox
Author: Clyde Jones
Version: 1.0.1
Zen Cart™ Version: v1.3.7
Update added on Jan 31 2007

i did install it and folow the instructions ( as much that i know ) and it is not showing up

www.tiledepot.us/store

This question should probably be posted in another thread. I would contact Clyde on it for help (if you can't find the thread). He has a lot of contributions and posts available. Or you could just send him a Private Message by going to his profile.

6 Jun 2007, 7:19 PM
#64
reza avatar

reza

Zen Follower

Join Date:
Aug 2006
Posts:
166
Plugin Contributions:
0

Re: custom forms - data collection

DrByte:

FYI, and for what it's worth, the code was all in place, ...I share this simply for the benefit of others who might have some troubles when creating custom pages for their site ... filename accuracy is important ;) :!

Hi Drbyte
I don't expect that you remember all things from 2004 about custom forms. therefore I put all the made files as your instructions in a zip file attached.
in fact I looked for a way to have a triple combobox in my product pages, but it doesn't work on zen pages. and I didn't get any answer in forum to combobox. I need that my customers fill a form situated in the product page and send it with the order at the same time. I saw this link below"""Check out the Rolex Repair Form link in the Information sidebox on this page: http://www.uswatchservice.com, Is this functionally what you need? ""; and it seems a little bit like what I need in priciples.
I did your instructions but I see nothing on my pages, except of a message on top of the page that says:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:\wamp\www\zen\includes\extra_datafiles\band_signup.php:5) in D:\wamp\www\zen\includes\functions\sessions.php on line 108

Warning: Cannot modify header information - headers already sent by (output started at D:\wamp\www\zen\includes\extra_datafiles\band_signup.php:5) in D:\wamp\www\zen\includes\init_includes\init_templates.php on line 78

any idea how can I get this module to work? or is there in between progress in this module for zen 1.3.7, may be that it doen't work because my version in 1.3.7?

7 Jun 2007, 8:23 AM
#65
reza avatar

reza

Zen Follower

Join Date:
Aug 2006
Posts:
166
Plugin Contributions:
0

Re: custom forms - data collection

reza:

Hi Drbyte
I did your instructions but I see nothing on my pages, except of a message on top of the page that says:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:\wamp\www\zen\includes\extra_datafiles\band_signup.php:5) in D:\wamp\www\zen\includes\functions\sessions.php on line 108

Warning: Cannot modify header information - headers already sent by (output started at D:\wamp\www\zen\includes\extra_datafiles\band_signup.php:5) in D:\wamp\www\zen\includes\init_includes\init_templates.php on line 78

any idea how can I get this module to work? or is there in between progress in this module for zen 1.3.7, may be that it doen't work because my version in 1.3.7?
HI DrByte
I could see the form now on the frontpage in information and more information boxes, in fact I should add $more_information and f$information string to all two files in the modules directory respectively and also in english.php in language dir.
there is still a problem with the header, I get this message: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:\wamp\www\zen\includes\extra_datafiles\band_sign up.php:5) in D:\wamp\www\zen\includes\functions\sessions.php on line 108

Warning: Cannot modify header information - headers already sent by (output started at D:\wamp\www\zen\includes\extra_datafiles\band_sign up.php:5) in D:\wamp\www\zen\includes\init_includes\init_templa tes.php on line 78
, I used your troubleshooting file in downloads to resolve it, but no changes.
when I delete the band_signup.php from extra_datafiles, the error message disapear bu also the form!!!!
any help please?
also is there any possibility to have the contents of the mailed-form in a database? I would like to have this form in product page, where or what do I put the link and what link?

7 Jun 2007, 8:35 AM
#66
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: custom forms - data collection

reza:

I get this message: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:\wamp\www\zen\includes\extra_datafiles\band_sign up.php:5)

You've made a typo of some sort on line 5 -- probably extra spaces in the end of the file.

See this FAQ for an explanation of typical ways this happens:
https://www.zen-cart.com/tutorials/index.php?article=87

You probably should check your other files for extra spaces as well, both top and bottom.

7 Jun 2007, 4:00 PM
#67
reza avatar

reza

Zen Follower

Join Date:
Aug 2006
Posts:
166
Plugin Contributions:
0

Re: custom forms - data collection

DrByte:

You've made a typo of some sort on line 5 -- probably extra spaces in the end of the file.

See this FAQ for an explanation of typical ways this happens:
https://www.zen-cart.com/tutorials/index.php?article=87

You probably should check your other files for extra spaces as well, both top and bottom.
IT's okay now, although all the forms goes below in the page and actually disturb all the page, should I edit tpl_band_signup_default.ph to get the fields nearer together or somewhere else?

also, I see in modules/pages/band_sign/header.php, that database will get the information from the postef form, if its so, it's completely what I looked for, but i don't see and don't know where in the phpmyadmin can I find these posted data, also I don't get the form in email, but I see in admin/tools/archive emalis.

could you please help me for these too?
thanks

7 Jun 2007, 7:30 PM
#68
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: custom forms - data collection

reza:

IT's okay now, although all the forms goes below in the page and actually disturb all the page, should I edit tpl_band_signup_default.ph to get the fields nearer together or somewhere else?The template file was built based on Zen Cart v1.2.x, which was current at the time those posts were made (and was based on using tables for layout).

You may have to make a few changes to bring the template into v1.3 compatibility, and thus not end up with layout problems. Perhaps comparing it with your contact_us template might be a starting point.

reza:

also, I see in modules/pages/band_sign/header.php, that database will get the information from the postef form, if its so, it's completely what I looked for, but i don't see and don't know where in the phpmyadmin can I find these posted data, also I don't get the form in email, but I see in admin/tools/archive emalis.If you are having problems sending emails, that is an entirely different issue.
First, make sure the email address in the band_signup file is correct.
If your site isn't sending any emails properly, that should be a different topic in a different thread.

7 Jun 2007, 10:29 PM
#69
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: custom forms - data collection

reza:

but all messages from frontshop are received in order except of band-singup; while the filled fields of the form of band-signup form is seen in admin email archive;

In your /includes/languages/english/band_signup.php file, what do you have set for an email address?

If it's still set to the default discussed earlier in this thread, then someone ELSE is getting your emails:```
define('SEND_TO_ADDRESS','[email protected] ');


Perhaps you might try changing that to this:```
define('SEND_TO_ADDRESS', STORE_OWNER_EMAIL_ADDRESS);
```... so that the emails go to your mail store email address?
7 Jun 2007, 11:26 PM
#70
reza avatar

reza

Zen Follower

Join Date:
Aug 2006
Posts:
166
Plugin Contributions:
0

Re: custom forms - data collection

I have already changed it to my emails' adresses in hotmail, yahoo and also shop owner to be sure that there is nothing due to the mail servers, results--> no changes;
the point here is that why the mails are sent with header and footer but they can not recognize $EMAIL_MESSAGE_HTML , and in the case of archive manager the whole of the email template statements, !!!

8 Jun 2007, 1:27 AM
#71
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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.

8 Jun 2007, 2:04 AM
#72
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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.

30 Oct 2007, 5:43 PM
#73
rsigmon avatar

rsigmon

New Zenner

Join Date:
Oct 2007
Posts:
8
Plugin Contributions:
0

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'); ?>
30 Oct 2007, 7:38 PM
#74
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: custom forms - data collection

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

31 Oct 2007, 1:37 PM
#75
rsigmon avatar

rsigmon

New Zenner

Join Date:
Oct 2007
Posts:
8
Plugin Contributions:
0

Re: custom forms - data collection

DrByte:

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! :blink:

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.

1 Nov 2007, 4:01 PM
#76
rsigmon avatar

rsigmon

New Zenner

Join Date:
Oct 2007
Posts:
8
Plugin Contributions:
0

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. :smile:

1 Nov 2007, 5:06 PM
#77
jacque427 avatar

jacque427

Zen Follower

Join Date:
Apr 2005
Location:
Spokane, Washington
Posts:
324
Plugin Contributions:
0

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.php?main_page=special%20order

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

Here is the code, what am I missing?

<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

1 Nov 2007, 6:45 PM
#78
jacque427 avatar

jacque427

Zen Follower

Join Date:
Apr 2005
Location:
Spokane, Washington
Posts:
324
Plugin Contributions:
0

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.php?main_page=special%20order

1 Nov 2007, 9:11 PM
#79
jacque427 avatar

jacque427

Zen Follower

Join Date:
Apr 2005
Location:
Spokane, Washington
Posts:
324
Plugin Contributions:
0

Re: custom forms - data collection

I've figured out the cause, it appears to be related to

'<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?

3 Nov 2007, 1:48 AM
#80
digitalphotoframe avatar

digitalphotoframe

New Zenner

Join Date:
Nov 2007
Posts:
1
Plugin Contributions:
0

Re: custom forms - data collection

:smile: