Forums / Setting Up Categories, Products, Attributes / Having a Character Countdown with just 1 row per text field?

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

Views: 942

Results 1 to 4 of 4
29 Sep 2011, 10:31 PM
#1
spiggles87 avatar

spiggles87

New Zenner

Join Date:
Mar 2011
Posts:
53
Plugin Contributions:
0

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.

29 Sep 2011, 11:01 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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:

if ( $products_options_names->fields['products_options_rows'] > 1 ) {

to read:

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!]
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!

30 Sep 2011, 8:05 AM
#3
spiggles87 avatar

spiggles87

New Zenner

Join Date:
Mar 2011
Posts:
53
Plugin Contributions:
0

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

Hello Ajeh!

Thank you so much! That worked a treat! :hug: :clap:

30 Sep 2011, 1:13 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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 ... :smile:

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!]
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!