Clone text attribute?

Locked

Views: 1,629

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
09 Jun 2009, 03:51
#1
giftmeister avatar

giftmeister

Zen Follower

Join Date:
Jan 2009
Location:
Montreal, Canada
Posts:
230
Plugin Contributions:
0

Clone text attribute?

If you check any item of mine at alexandergifts.ca, you'll see a text attribute box for "Card-message" where customers write a little note to the gift's recipient. On top of the box, I added a line of brief instructions "<150 characters..." through languages\custom\english.php.

Thing is, I have a few items that require another text box, yet the line of "<150 characters..." also appears- naturally- but does not apply. And this line for Card-message is very important for all items so I don't want to remove it and write that in the general product description.

Is there any way to clone the text attribute so that I can have, for example, Text2 in Option Value Manager?

Or any way in languages\custom\english.php to differentiate when there are two text boxes for one item?

Cheers,

Robbie

1.38a

09 Jun 2009, 06:18
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Clone text attribute?

Thing is, I have a few items that require another text box, Are ALL of these in one single category?? If so, a if/else conditional could be created to filter them out

09 Jun 2009, 13:30
#3
giftmeister avatar

giftmeister

Zen Follower

Join Date:
Jan 2009
Location:
Montreal, Canada
Posts:
230
Plugin Contributions:
0

Re: Clone text attribute?

The original text box is in multiple categories. The new text requirement is in two categories, though if that's an issue I can limit it to one. Can you please spell out the code...in what file?

R

09 Jun 2009, 13:34
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Clone text attribute?

Why not use the "maximum permitted characters" function that is already inherent in ZC text attributes?

09 Jun 2009, 14:47
#5
giftmeister avatar

giftmeister

Zen Follower

Join Date:
Jan 2009
Location:
Montreal, Canada
Posts:
230
Plugin Contributions:
0

Re: Clone text attribute?

My little of line of text includes more than the max chars, it has a pop-up link with more info. See example.

09 Jun 2009, 17:23
#6
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Clone text attribute?

As I said... this function is** integral **to zencart.

See us using it **here**.

(Scroll down to the "Inscription" (50 char limit) and "Notes" (500 limit) input text field to see what I mean.)

09 Jun 2009, 22:24
#7
giftmeister avatar

giftmeister

Zen Follower

Join Date:
Jan 2009
Location:
Montreal, Canada
Posts:
230
Plugin Contributions:
0

Re: Clone text attribute?

On my site, the Card-message box is on all items and the line above says more than the character limit, it has a special pop-up link. On a second text box I need for a few items, I need the line above to say something different (not just the char limit) and have a different pop-up link.

17 Jun 2009, 19:52
#8
giftmeister avatar

giftmeister

Zen Follower

Join Date:
Jan 2009
Location:
Montreal, Canada
Posts:
230
Plugin Contributions:
0

Re: Clone text attribute?

I just realized what you were getting at...the Comments section in Option Name Manager can add a line of text above the option name for a text box. I thank you, yet I wish you would've simply said that! ;-) (The page on your site seems to just have the option name, standard maximum characters line and the text box...no "Comments.")

While it can help me, I'm not sure I'll do it because the Comment line is quite outstanding...the line of text I have now in place of the maximum characters count would be large and take up more space in the Comment line...and it appears with every item of mine. Whereas I need the second text box- with its own instructions above it- for a handful of items.

I tried without success to make the Comments line a smaller font size than my other Option Names. Does anyone know how to do that?

Thanks,

R

17 Jun 2009, 20:23
#9
giftmeister avatar

giftmeister

Zen Follower

Join Date:
Jan 2009
Location:
Montreal, Canada
Posts:
230
Plugin Contributions:
0

Re: Clone text attribute?

As has happened numerous times, I figured out the last part after replying. To change just the font size of the Comments (since I set the Option Names and other text to be larger than usual), change this in stylesheet.css-

.attributesComments {}

to

.attributesComments {
	font-size: x%;
}

R