Results 1 to 9 of 9
  1. #1
    Join Date
    Jan 2009
    Location
    Montreal, Canada
    Posts
    228
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default 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

  3. #3
    Join Date
    Jan 2009
    Location
    Montreal, Canada
    Posts
    228
    Plugin Contributions
    0

    Default 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

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,269
    Plugin Contributions
    3

    Default Re: Clone text attribute?

    Why not use the "maximum permitted characters" function that is already inherent in ZC text attributes?
    20 years a Zencart User

  5. #5
    Join Date
    Jan 2009
    Location
    Montreal, Canada
    Posts
    228
    Plugin Contributions
    0

    Default 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.

  6. #6
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,269
    Plugin Contributions
    3

    Default 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.)
    20 years a Zencart User

  7. #7
    Join Date
    Jan 2009
    Location
    Montreal, Canada
    Posts
    228
    Plugin Contributions
    0

    Default 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.

  8. #8
    Join Date
    Jan 2009
    Location
    Montreal, Canada
    Posts
    228
    Plugin Contributions
    0

    Default 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

  9. #9
    Join Date
    Jan 2009
    Location
    Montreal, Canada
    Posts
    228
    Plugin Contributions
    0

    Default 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-

    PHP Code:
    .attributesComments {} 
    to

    PHP Code:
    .attributesComments {
        
    font-sizex%;

    R

 

 

Similar Threads

  1. Make a text attribute required ONLY IF another attribute is set
    By lars in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 23 Jun 2012, 08:58 PM
  2. Text Box Attribute - text not wrapping in shopping cart
    By cowgirlmodel in forum Setting Up Categories, Products, Attributes
    Replies: 8
    Last Post: 23 Oct 2009, 07:00 PM
  3. Clone a shipping module or define a new shipping attribute under table rate module?
    By meeven in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 4 Sep 2007, 04:56 PM
  4. To clone or not to clone?
    By earmsby in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 31 Dec 2006, 01:09 AM
  5. Attribute Text does not show text entry box, HELP!
    By dinki in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 8 Nov 2006, 01:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg