Yup, but you might wanna make sure and wait for someone else to confirm it as I am unsure of myself. Better yet, why don't you give a call to the iPage guys because they can answer your iPage question better...
When you click on add to cart. I have option type contribution installed, and that is how that one works. I'm looking for something similar to the text option for option type, but with the capability to add alot of instruction (like a textarea box)...
Does anyone have any ideas? Could someone please help me? I'm really at a loss here.....
I did this....
ALTER TABLE 'products' ADD 'products_special_instructions' TEXT NOT NULL;.
Did I add the field in the right table in MySQL database?.
I was looking at the tep_draw_textarea_field function. Do I use this? How?.
I noticed that the first variable from this function in the checkout_shipping.php file is the name, 'comments'. How is this passed to other pages? There is a field called comments in the orders_status_history table. I can't find where the function is that puts it in the database....
Getting confused. Any help appreciated. Still trying to learn.....
Sorry for bumping this, but if anyone can help me please reply, or PM me.....
Before I start tackling this, I want to be sure I know exactly what it is you need from this textarea..
From what I gather, you want the textarea to appear on the products_info page, have the customers type something in there, and when they check out, it will be emailed to them, is this correct? Will you need to know what they typed in there or is it something just for their own information?.
I know basically how to add a textearea and get it to insert to the database, but the way osC does that is different in different areas. Once I get it into the database, retrieving the information for display or mailing is pretty easy..
Post back with more specifics, and I'll give a shot at coding something for you...
Very cool..
I will need to know what is typed in. If you've ever used/seen the Option Type Contribution, it's similar to that. I have that installed. If it's easier to just add another option type, then that would be fine..
1) Textarea labeled "Special Instructions" in the product_info.php page..
2) User will add instructions if they feel it's necessary..
3) When user checks out, special instructions (if inputted) will show with each product..
4) After checkout completely done, email will contain special instructions info and any other copies sent will contain them also..
Thanks for your reply..
I just started (this afternoon), to try and add another option type as a textbox, but I'm not confident that it will work..
Whatever you want to do, any help is sincerely appreciated...
Check your PM's - if I get the files from you tonight, I'll start working on this first thing tomorrow morning...
Is this installed on a Windows server? From the looks of your config files, it would seem so. If that's the case, I'm very sorry for getting your hopes up, but I'm completely clueless about writing scripts for Windows servers. If it's not on a Windows server, your config files are badly in need of editing..
This post has been edited by.
Mary B..
: 04 August 2004, 19:49..
The test iPage site is. I've already been able to upload it to a Linux box though..
Easiest way for me is to install a new osCommerce on the Linux box and then overwrite everything except the two config files..
I don't have php as cgi or iis or anything like that, just Apache, PHP, and MySQL...
I'm trying to modify Option Type to add another option type. Textarea specifically..
The thread is here..
Http://forums.oscomm...howtopic=105201.
Any help is appreciated..
This post has been edited by.
Soccercheese.
: 05 August 2004, 21:32..
I was able to get the textarea to display on your products_info.php page by changing lines 208 - 211 from this:.
<tr>.
<td class="main"><?php echo $products_options_name['products_options_name']':'; ?></td>.
<td class="main"><?php echo tep_draw_pull_down_menu('id['$products_options_name['products_options_id']']', $products_options_array, $selected_attribute)$products_options_name['products_options_comment']; ?></td>.
</tr>.
To this:.
<tr>.
<td class="main" valign="top"><?php echo $products_options_name['products_options_name']':'; ?></td>.
<td class="main"><?php echo tep_draw_textarea_field($products_options_name['products_options_name'], 'soft', '40', '10'); ?></td>.
</tr>.
I haven't been able to make any progress with getting the input passed to any of the checkout pages though...
I'm trying to add a comment box to the product info page. I don't need any admin functions, I just need it to show in the order confirmation page and in the emails that are sent..
Can someone guide me on how to do this? I've searched the forums extensively without success. It's the last thing I need to do that I don't really know how to do..
I know I need to:.
Add a field to a table (but which one?) and set the parameters for it..
Put in the code into the product_info.php that would put the comment box info into the field (but I really don't know PHP syntax that well)..
Read the info from the field and display it in the checkout pages and in the emails (again, not too good at PHP)..
Is there anything I'm missing that I would need to do?.
Can someone please help me with this?..
How will it save the info ito your DB?? The product info has no submit button!..

