Forums / Bug Reports / [Done v1.3.9a] Option Values - Editing in Admin doesn't display whole value

[Done v1.3.9a] Option Values - Editing in Admin doesn't display whole value

Locked

Views: 1,149

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
4 Feb 2010, 11:42 PM
#1
cjsmiff avatar

cjsmiff

Zen Follower

Join Date:
Jul 2006
Location:
UK
Posts:
170
Plugin Contributions:
0

[Done v1.3.9a] Option Values - Editing in Admin doesn't display whole value

Hi,

I have a problem in Admin when editing Option Values, it doesn't display the whole 'value' it cuts off the last few characters. The whole 'value' is there if the editing is cancelled or saved.

I need the whole value to be displayed when editing too.

Attached is a screen print of what I mean - I have, as you can see, been able to increase the size of the field in options_values_manager.php and have also increased the table products_options_values_name in phpmyadmin. But it hasn't helped. The last few characters are still missing when I edit.

Any ideas please?

Many thanks
Claire

5 Feb 2010, 3:42 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: [Done v1.3.9a] Option Values - Editing in Admin doesn't display whole value

Edit the file:
/admin/options_values_manager.php

and try changing the line:

          $inputs .= $languages[$i]['code'] . ': <input type="text" name="value_name[' . $languages[$i]['id'] . ']" ' . zen_set_field_length(TABLE_PRODUCTS_OPTIONS_VALUES, 'products_options_values_name', 25) . ' value="' . $value_name->fields['products_options_values_name'] . '"> <br />';

to read:

          $inputs .= $languages[$i]['code'] . ': <input type="text" name="value_name[' . $languages[$i]['id'] . ']" ' . zen_set_field_length(TABLE_PRODUCTS_OPTIONS_VALUES, 'products_options_values_name', 25) . ' value="' . zen_output_string($value_name->fields['products_options_values_name']) . '"> <br />';

and let us know if that helps you with this ...

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!

5 Feb 2010, 4:41 PM
#3
cjsmiff avatar

cjsmiff

Zen Follower

Join Date:
Jul 2006
Location:
UK
Posts:
170
Plugin Contributions:
0

Re: [Done v1.3.9a] Option Values - Editing in Admin doesn't display whole value

Fabulous, it works!

You are a star!

Thank you very very much.

Claire :clap:

5 Feb 2010, 5:34 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: [Done v1.3.9a] Option Values - Editing in Admin doesn't display whole value

Thanks for the update that this works for you ... moving to the BugFixes forum ... :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!