Results 1 to 9 of 9
  1. #1
    Join Date
    Jan 2007
    Location
    Bellingham, Wa
    Posts
    174
    Plugin Contributions
    0

    Default textarea modification

    I found this thread in archives http://www.zen-cart.com/forum/showthread.php?t=13398

    Explaining how to add a text box as an attribute rather than just a line.
    Only problem is in 1.3.7 there is no includes/modules/pages/product_info/main_template_vars_attributes.php file

    I do look before I come begging for help
    So it isn't working for me.

    I just need to add a text box as an attribute for detailed instructions and the one liner doesn't work.

    Just like the comment section in checkout but it needs to be an attribute for the specific product as they may be getting more than one product at a time.

    Any ideas?

  2. #2
    Join Date
    Jan 2007
    Location
    Bellingham, Wa
    Posts
    174
    Plugin Contributions
    0

    Default Re: textarea modification

    Ok I was confused by that last thread ( geared towards olders versions )
    In 1.3.7 you just make option values longer ( 255 ) and add rows.

    But now I'm presented with two more problems.

    1) the long text attribute makes checkout run off the page. It displays all 255 characters in a row.

    In this thread http://www.zen-cart.com/forum/showthread.php?t=38386
    There is this solution
    You're welcome! One other tip - I removed the <nobr> that was wrapping the attribute option value in tpl_checkout_confirmation.php around line 110 so that long message values wrap rather than push the page out.
    However my file is named tpl_checkout_confirmation_default.php and there no reference to <nobr> in there. So where would I fix that?

    2) The comments in product name are truncated when displyed on the page I think to 64.

    Thanks.
    Attached Images Attached Images  

  3. #3
    Join Date
    Jan 2007
    Location
    Bellingham, Wa
    Posts
    174
    Plugin Contributions
    0

    Default Re: textarea modification

    Solved problem two
    Seems your comment is being cut of because it is being stored in products_options_comment in the table products_options. The field is only set to VARCHAR(64) and will truncate anything beyond 64 characters. You could increase the size of that field with something like:

    Code:
    ALTER TABLE `products_options` CHANGE `products_options_comment` `products_options_comment` VARCHAR( 128 ) NULL DEFAULT NULL;
    which would give you 128 characters.
    Still have problem 1 I don't know where to edit to keep the page from running in checkout.

  4. #4
    Join Date
    Jan 2007
    Location
    Bellingham, Wa
    Posts
    174
    Plugin Contributions
    0

    Default Re: textarea modification

    Maybe some pictures will illustrate the problem.

    Still haven't found out what to edit. It happens in checkout after you input 255 characters into the text box on the product info page. The above solution doesn't work.

    Thanks.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	text.jpg 
Views:	206 
Size:	20.9 KB 
ID:	1403   Click image for larger version. 

Name:	text2.jpg 
Views:	224 
Size:	34.1 KB 
ID:	1404  

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: textarea modification

    Other than supercalifragilisticexpialidocius what large words are you expecting to be added?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Jan 2007
    Location
    Bellingham, Wa
    Posts
    174
    Plugin Contributions
    0

    Default Re: textarea modification

    Instructions that may be long. They need to be specific for the product as an attribute. The comment oncheckout wont work because there may be several products and thats just confusing.

    There was a solution as described above but like I said that code isn't in my tpl.

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: textarea modification

    I always add a space between my words so that it is clearer to read ...

    Try the 250 characters and breath between every 6th to 12th character ... see if that doesn't look nicer ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #8
    Join Date
    Jan 2007
    Location
    Bellingham, Wa
    Posts
    174
    Plugin Contributions
    0

    Default Re: textarea modification

    Darn!!! I beat my brains tryin to figure that out.

    It was the lack of spaces.

    Thanks. I would have been diggin at it forever.

  9. #9
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: textarea modification



    Wonder how I know about that nasty little test?

    Thanks for the update and happy testing!!
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Admin modification vs. .php file modification??
    By recordshow in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 13 Nov 2006, 05:00 AM
  2. Textarea Boxes
    By TLC in forum General Questions
    Replies: 6
    Last Post: 19 Jun 2006, 11:48 PM
  3. Textarea error..
    By savanne in forum General Questions
    Replies: 0
    Last Post: 26 May 2006, 12:52 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR