Forums / Setting Up Categories, Products, Attributes / readonly attribute option

readonly attribute option

Locked

Started by newagekat on 16 Jan 2009, 8:29 PM · Views: 965

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
16 Jan 2009, 8:29 PM
#1
newagekat avatar

newagekat

Zen Follower

Join Date:
Nov 2005
Location:
Vancouver, Canada
Posts:
151
Plugin Contributions:
0

readonly attribute option

Hi:
I'm using v1.3.8.

I've done a lot of searching for this and cannot find one post that answers this.

I need to add some read only text in attributes. However, I find the field limits the length of the text. is this controlled somewhere or do I need to modify the core files? if modification is needed, can you identify the page and perhaps what part of the code needs to change?

Thank you

KP

17 Jan 2009, 12:43 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: readonly attribute option

This is set in the database as the record length for the field you are trying to enter more than allowed . .

Not easy as from the admin

Zen-Venom Get Bitten

17 Jan 2009, 1:46 AM
#3
newagekat avatar

newagekat

Zen Follower

Join Date:
Nov 2005
Location:
Vancouver, Canada
Posts:
151
Plugin Contributions:
0

Re: readonly attribute option

kobra:

I've tinckered in the db in browse mode, do you happen to know what table I need to look at?

KP

17 Jan 2009, 2:05 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: readonly attribute option

If what I think you are after this would be the either the products_options table and the products_options_name record currently set to 32

or the products_options_values table and the products_options_values_name record currently set to 64

Backup your DB BEFORE doiing any of this
https://www.zen-cart.com/tutorials/index.php?article=103

32 and 64 are ample and you may rethink your naming

Zen-Venom Get Bitten

19 Jan 2009, 7:29 PM
#5
newagekat avatar

newagekat

Zen Follower

Join Date:
Nov 2005
Location:
Vancouver, Canada
Posts:
151
Plugin Contributions:
0

Re: readonly attribute option

kobra:

If what I think you are after this would be the either the products_options table and the products_options_name record currently set to 32

or the products_options_values table and the products_options_values_name record currently set to 64

Backup your DB BEFORE doiing any of this
https://www.zen-cart.com/tutorials/index.php?article=103

32 and 64 are ample and you may rethink your naming

In case anyone is interested, the correct table is product_option_values. You just need to edit the field called product_option_value_name from varchar(64) to varchar(192).

Kobra is correct, be sure to backup before editing the DB directly.:D

KP

19 Jan 2009, 11:11 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: readonly attribute option

You just need to edit the field called product_option_value_name from varchar(64) to varcharSIZE="4"[/SIZE].
192!!!! You need to learn how to effectively describe in a short fashion - - not write a book!

Zen-Venom Get Bitten

20 Jan 2009, 3:00 AM
#7
devlyn avatar

devlyn

New Zenner

Join Date:
Jan 2006
Location:
Texas
Posts:
64
Plugin Contributions:
0

Re: readonly attribute option

This is exactly what I was looking for to help add "notes" about various options for my customers. I'm using 1.3.7 and it also worked for me.

Couldn't have come at a better time for me. Thanks!

Odd Bodkin Renaissance Shop (1.3.9h shop)
http://www.oddbodkin.com