Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Word wrap for text attribute?

Word wrap for text attribute?

Locked

Views: 3,255

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
22 Jun 2007, 03:49
#1
viajerozz avatar

viajerozz

New Zenner

Join Date:
Jun 2007
Posts:
16
Plugin Contributions:
0

Word wrap for text attribute?

I must be missing something..I am able no problem to add the attribute for a text area for each product..the rows,display size and maximum length all work ..except when the customer inputs text it all scrolls left and right..not wrapping down the text area box as it should..like any simple word processor it should be word wrapping when the text reaches the limits of the text area width..how can I induce word wrapping please?? Thanks for any help!

23 Jun 2007, 17:13
#2
viajerozz avatar

viajerozz

New Zenner

Join Date:
Jun 2007
Posts:
16
Plugin Contributions:
0

Re: Word wrap for text attribute?

I am hoping to go live soon and would like to resovle this minor problem..surely I am not the only one who had this but I cant find anything about it here on the forum..does anyone know how to make the word wrap fucntion in text area attribute?? Pretty please???:-)

28 Jun 2007, 19:07
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Word wrap for text attribute?

You might post an URL to a Product on your site as usually this is a stylesheet issue ... :smile:

29 Jun 2007, 17:12
#4
viajerozz avatar

viajerozz

New Zenner

Join Date:
Jun 2007
Posts:
16
Plugin Contributions:
0

Re: Word wrap for text attribute?

Thanks..was my own silly mistake..if you are in a text box and just hold down a keyboard key it just scrolls right off the screen..and does not wrap to next line..however, if you break up the line a little as if typing words or actually type in words the line breaks and wraps to the next line as it should..kinda buggy but since people will type in words anyway not an issue..sorry:-)

30 Jun 2007, 23:01
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Word wrap for text attribute?

aha! a clue ... the infamous text of a 100 characters that cannot wrap as there isn't a space by which to do so ... :eek:

Thanks for posting back the solution ... :smile:

24 Oct 2007, 14:55
#6
patski avatar

patski

Zen Follower

Join Date:
Nov 2004
Location:
Deal, Kent, UK
Posts:
325
Plugin Contributions:
0

Re: Word wrap for text attribute?

Can someone remind me where I can change the order confirmation email so that a text attribute (length 100+ characters) will wrap instead of showing in one long line. The stylesheet has a width so a bit mystified as to why it just keeps stretching out beyond the edge.

Thanks in advance

26 Oct 2007, 02:50
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Word wrap for text attribute?

Look for the <nobr> ...

Many sites need to know precisely what and how the customer enters text, hence the use of <nobr> ...

If your site can manage fine with this freestyle, then do a search in the Developers Tool Kit for:
<nobr>

and you can then remove that ...

NOTE: most of the files will NOT have overrides for them so be sure that you backup the originals BEFORE making your changes to help you during upgrades ...

NOTE: Developers Tool Kit will check all php files but not HTML files such as those in the /email directory ...

26 Oct 2007, 09:33
#8
patski avatar

patski

Zen Follower

Join Date:
Nov 2004
Location:
Deal, Kent, UK
Posts:
325
Plugin Contributions:
0

Re: Word wrap for text attribute?

Hi Ajeh

Thanks for the reply - that's a huge improvement .

What I'd really like :shocking: is for the attributes to display in the email in list format like it does on the screen rather than in a continuous wrapped line.

Also, I've had to be rather creative with the naming of the attributes because the screen text for several of the text boxes had to be Message. So for example I set up attributes as Message, MEssage, MESsage because each had a different maximum length. Transforming the text to uppercase on screen meant it didn't look like I was a bad typist :smile: I guess this is just a matter of editing the css in the email template to make them uppercase?

27 Oct 2007, 05:39
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Word wrap for text attribute?

umm .. well ... being the humble code that I am without a clue as to how to design stuff with css and only know how to make the code spit out all that class and id stuff that you designer types like ... umm ... in a word ... well ... a ... maybe? :eek:

27 Oct 2007, 08:08
#10
patski avatar

patski

Zen Follower

Join Date:
Nov 2004
Location:
Deal, Kent, UK
Posts:
325
Plugin Contributions:
0

Re: Word wrap for text attribute?

Humble coder indeed! We 'designer types' would be nowhere if it weren't for the talent and commitment of the zen team to providing such a wonderful product to work with....

:hug:

...if I DID want the email attributes in list format though I think that's somewhere in the file I find the <nobr>?

27 Oct 2007, 16:11
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Word wrap for text attribute?

To see if this is in a php file you can do a search with the Tools ... Developers Tool Kit ... and enter in the bottom input box:
<nobr>

then select Catalog and click Search ...

This will show you all php files that contain the <nobr> ...