Forums / All Other Contributions/Addons / Change a form field from TEXT to TEXTAREA? Short_Description module

Change a form field from TEXT to TEXTAREA? Short_Description module

Started by jacobbushnell on 17 Nov 2011, 12:38 AM · Views: 1,097

Results 1 to 7 of 7
17 Nov 2011, 12:38 AM
#1
jacobbushnell avatar

jacobbushnell

New Zenner

Join Date:
Mar 2010
Location:
Bonners Ferry, Idaho
Posts:
69
Plugin Contributions:
0

Change a form field from TEXT to TEXTAREA? Short_Description module

Hello, I installed the Short_Description module and its working nicely BUT I want it to display as a TEXTAREA instead of just the short text box.

I changed the underlying table field to TextArea.

How do I change the admin edit product or add product form to use a larger text area field instead of the default text field?

Thank you,
Jacob Bushnell

18 Nov 2011, 6:52 PM
#2
davowave avatar

davowave

New Zenner

Join Date:
Mar 2009
Posts:
90
Plugin Contributions:
0

Re: Change a form field from TEXT to TEXTAREA? Short_Description module

I would have thought the same technique would do. Can you not change the form input for the admin just the same?

If that's not possible then I'd admit I'm not too sure what the short_description module is. So it's hard to understand exactly what your problem is. Can you explain a little clearer save me going and finding out.

18 Nov 2011, 7:14 PM
#3
jacobbushnell avatar

jacobbushnell

New Zenner

Join Date:
Mar 2010
Location:
Bonners Ferry, Idaho
Posts:
69
Plugin Contributions:
0

Re: Change a form field from TEXT to TEXTAREA? Short_Description module

Hello, thanks for your reply. When I change the input to the same as the mail description it DOES make it large HTML editor.

The problem with that is this field is intended for a Google product export feed. So I don't want any formatting, and the editor always adds at least a <P> tag to the text.

All what I really want is a text box that has multiple lines and is wider. But I don't know how to change it.

In my collect_info.php page it is displayed with this code here:

<tr>
            <td class="mainUPC"><?php if ($i == 0) echo TEXT_PRODUCTS_SHORT_DESC; ?></td>
            <td colspan="2"><table border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td class="main" width="25" valign="top">
            <td class="mainUPC"><?php echo zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . zen_draw_input_field('products_short_desc[' . $languages[$i]['id'] . ']', (isset($products_short_desc[$languages[$i]['id']]) ? $products_short_desc[$languages[$i]['id']] : zen_get_products_short_desc($pInfo->products_id, $languages[$i]['id'])), zen_set_field_length(TABLE_PRODUCTS_DESCRIPTION, 'products_short_desc')); ?></td>
          </tr>
18 Nov 2011, 9:09 PM
#4
davowave avatar

davowave

New Zenner

Join Date:
Mar 2009
Posts:
90
Plugin Contributions:
0

Re: Change a form field from TEXT to TEXTAREA? Short_Description module

Ah, OK. I'm still not 100% sure what exactly your doing because I'm not familiar with the mod you talked about. But if it's something to do with adding descriptions for products and you don't want the html around whatever you put in there then you could try:

Go to your admin -> configuration -> my store -> HTML Editor

and change the setting to NONE

Is that what you're on about?

18 Nov 2011, 9:12 PM
#5
jacobbushnell avatar

jacobbushnell

New Zenner

Join Date:
Mar 2010
Location:
Bonners Ferry, Idaho
Posts:
69
Plugin Contributions:
0

Re: Change a form field from TEXT to TEXTAREA? Short_Description module

Not quite. You see, I DO want the HTML editor on the normal description. But I DO NOT want it on the short_description field.

Not sure how to make it appear on one, but not on the other in the same form.
Jacob

18 Nov 2011, 11:10 PM
#6
davowave avatar

davowave

New Zenner

Join Date:
Mar 2009
Posts:
90
Plugin Contributions:
0

Re: Change a form field from TEXT to TEXTAREA? Short_Description module

See the code you posted... does removing the class="mainUPC" from one of the <td> work?

19 Nov 2011, 4:43 PM
#7
jacobbushnell avatar

jacobbushnell

New Zenner

Join Date:
Mar 2010
Location:
Bonners Ferry, Idaho
Posts:
69
Plugin Contributions:
0

Re: Change a form field from TEXT to TEXTAREA? Short_Description module

Thank you but no, it does not. I made that class to make the UPC fields standout.

Thank you,
Jacob Bushnell