Attribute Textarea

Project:Ubercart Contributions
Component:Code
Category:
Priority:normal
Assigned:Unassigned
Status:active
Description
Project: 
Ubercart

Ubercart currently comes with the attributes module, which allows you to create attributes for a product. These are either textbox,drop down list or radio selects. Is it possible to add a text area for collecting larger ammounts of text??

Version: 
Ubercart 1.6
Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Attribute Textarea

This would require a change in the DB and changes in places where attributes are displayed to make it usable... I'm not sure it's something I'd want to support in core, but you should be able to do it through a custom module if you've got some development skills.

johngflower's picture
Offline
Joined: 01/04/2009
Juice: 88
Has anyone created a module for textareas?
Assigned to:Ryan» johngflower

This module would be handy.

*bump*

johngflower's picture
Offline
Joined: 01/04/2009
Juice: 88
Re: Attribute Textarea

I've managed to get text areas. Here's how

open sites/all/modules/ubercart/uc_attribute/uc_attribute.module and do a search and replace, changing textfield to textarea.

This is not a good solution. The changes will be wiped if you upgrade the ubercart module. You will not be able to insert textfields.

Joel Stein's picture
Offline
Joined: 06/16/2009
Juice: 19
Patch on drupal.org
Assigned to:johngflower» Joel Stein

I submitted a patch which adds textarea attribute support for Ubercart 2:

http://drupal.org/node/496450

johngflower's picture
Offline
Joined: 01/04/2009
Juice: 88
You have saved a brick wall!
Assigned to:Joel Stein» johngflower

From being damaged from me repeatedly headbutting it. I'll have a go at implementing the patch.

Thank you.

johngflower's picture
Offline
Joined: 01/04/2009
Juice: 88
This

patch works like a charm.