devilj Posted July 20, 2004 Share Posted July 20, 2004 Hello, I just configured Products Extra Fields (PEF). Great Contrib!!! I was wondering if anyone new a way to get the data entry area in the new product entry area to be a text area entry rather than an input box? In essence I would like the Extra Field to look like the Product description on that page. Also, how do you "hide" this extra field on the product_info.php page? Thanks..... Quote Link to comment Share on other sites More sharing options...
tobycatlin Posted July 21, 2004 Share Posted July 21, 2004 I need to do this too. I am working on it at the moment this is the code that displays the description text box but i don't know how to make it work with the extra fields. <?php echo tep_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '70', '15', (isset($products_description[$languages[$i]['id']]) ? $products_description[$languages[$i]['id']] : tep_get_products_description($pInfo->products_id, $languages[$i]['id']))); ?> I think this is a very good contrib that should be integrated into the core program, although the input type should be set in the configuration rather than having to recode catergoires.php Quote I ain't got time to bleed Link to comment Share on other sites More sharing options...
tobycatlin Posted July 21, 2004 Share Posted July 21, 2004 I have worked it out. replace #echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field("extra_field[".$extra_fields['products_extra_fields_id']."]", $extra_product_field[$extra_fields['products_extra_fields_id']]); with echo tep_draw_textarea_field("extra_field[".$extra_fields['products_extra_fields_id']."]", 'soft', '70', '15', $extra_product_field[$extra_fields['products_extra_fields_id']]); although you must have the same kind of input box for all of the custom fields. Also the database field is set to a character limit of 64. Quote I ain't got time to bleed Link to comment Share on other sites More sharing options...
ACE99 Posted August 5, 2004 Share Posted August 5, 2004 BTW, you can easily go into the db and change the character limit to 255 or something. Quote Link to comment Share on other sites More sharing options...
mat123slade Posted October 29, 2004 Share Posted October 29, 2004 Thanx guys, that helped me so much... All the Best. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.