Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2011
    Posts
    44
    Plugin Contributions
    0

    Default Having a Character Countdown with just 1 row per text field?

    Hello,

    I have been searching hours for a solution to what seemed like a simple problem.

    I use the Text Field attribute quite a bit and was looking to have the character countdown that you get when 'Row: 2' is selected, but with only 1 row?

    Is it possible to find the code that makes the character countdown 'maximum characters allowed' box appear when 2 rows are selected and have it changed to just 1 row so that it appears? Currently, when 1 row is selected the box disappears.

    Thanks in advance.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,719
    Plugin Contributions
    6

    Default Re: Having a Character Countdown with just 1 row per text field?

    You could edit the file:
    /includes/modules/attributes.php

    using your templates and overrides ... and change the two lines:
    Code:
    if ( $products_options_names->fields['products_options_rows'] > 1 ) {
    to read:
    Code:
    if ( $products_options_names->fields['products_options_rows'] >= 1 ) {
    While this is larger than 1 row, it is smaller than the 2 Row setting ...
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  3. #3
    Join Date
    Mar 2011
    Posts
    44
    Plugin Contributions
    0

    Default Re: Having a Character Countdown with just 1 row per text field?

    Hello Ajeh!

    Thank you so much! That worked a treat!

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,719
    Plugin Contributions
    6

    Default Re: Having a Character Countdown with just 1 row per text field?

    You are most welcome ... thanks for the update that this works for you ...
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

 

 

Similar Threads

  1. Weird ? Character showing in text ?
    By wizer in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 6 Nov 2011, 01:59 AM
  2. HTML Special Character and Plain Text Editor (1.3.8)
    By chadderuski in forum General Questions
    Replies: 2
    Last Post: 16 Aug 2011, 05:53 PM
  3. Character encoding in text field
    By kuba1 in forum Bug Reports
    Replies: 2
    Last Post: 29 Jan 2009, 06:55 AM
  4. Lenthen Attribute character field
    By travellers in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 26 Nov 2008, 07:43 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
  •