Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2011
    Posts
    52
    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
    69,402
    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.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!

  3. #3
    Join Date
    Mar 2011
    Posts
    52
    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
    69,402
    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.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. Replies: 2
    Last Post: 19 Sep 2012, 03:51 AM
  2. problems with having multiple photos per product
    By Snicklefritz in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 2 Jun 2010, 04:54 AM
  3. Character encoding in text field
    By kuba1 in forum Bug Reports
    Replies: 2
    Last Post: 29 Jan 2009, 06:55 AM
  4. 4 products per row problems with explorer
    By raskayu in forum Templates, Stylesheets, Page Layout
    Replies: 16
    Last Post: 24 Oct 2007, 03:44 PM
  5. Problem just one product per row in main page
    By helloUK in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 9 Aug 2007, 12:15 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