Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / TEXT field attribute not showing

TEXT field attribute not showing

Locked

Views: 8,897

Results 21 to 30 of 30
This thread is locked. New replies are disabled.
31 Oct 2008, 6:36 AM
#21
this_side_up avatar

this_side_up

New Zenner

Join Date:
Nov 2006
Posts:
57
Plugin Contributions:
0

TEXT field attribute not showing

Hi Ajeh

The problem was caused by the software i was using to restore the database. I just recently started using this software for updates and did'nt pick up the problem it was causing straight away.
When i discovered the issue on my site, i then continued to use the software db tool to try and fix it, thinking it was perhaps the result of a mod installation, or template alteration on my part. That's why, despite doing db restores, the problem persisted. :dontgetit
I've stopped using the software, because every time it connects (yip, it only had to connect) to the db it removes that code you gave me.
I've notified the creators of the 3rd party software to have a look at it.

Once again, many thanks
Warren

31 Oct 2008, 6:16 PM
#22
ajeh avatar

ajeh

Oba-san

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

Re: TEXT field attribute not showing

Thanks for the update and letting the 3rd party software folks know ...

Good luck on this! :smile:

28 Oct 2009, 5:01 PM
#23
infocom avatar

infocom

Zen Follower

Join Date:
Jul 2006
Location:
Cardiff, Wales
Posts:
308
Plugin Contributions:
0

Re: TEXT field attribute not showing

I know its an old thread but I have wasted hours on this issue and this post finally fixed it for me. So thanks Ajeh. ... I have also used some custom scripts to import products and attributes and this line must have been removed from the DB... so this simple fix fixed my missing File Upload field. Thanks a lot. :D

Ajeh:

Can you look at the database table products_options_values and brows to see if you have a products_options_values_id for 0 ...

This is needed for TEXT attributes to work as this is their products_options_values_id ...

If you do not have an products_options_values_id of 0 that is set for TEXT, you need to add that back in with:

INSERT INTO products_options_values (products_options_values_id, language_id, products_options_values_name) VALUES (0, 1, 'TEXT');

28 Oct 2009, 7:00 PM
#24
ajeh avatar

ajeh

Oba-san

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

Re: TEXT field attribute not showing

Thanks for posting the update of what fixed your TEXT attributes ... it is always a real help to others ... :smile:

26 Aug 2010, 8:30 PM
#25
rmjr avatar

rmjr

New Zenner

Join Date:
May 2005
Posts:
48
Plugin Contributions:
0

Re: TEXT field attribute not showing

It seems as though this issue popped back up in 1.3.9d. Any ideas how to fix it?

Here is the page it happens on:

http://healthnewsweb.com/index.php?main_page=product_info&cPath=5&products_id=182

When I click add to cart without the required drop down selected, when the page reloads I have no text boxes. If I go back one page and refresh the page, everything is fine.

Any ideas?

26 Aug 2010, 10:43 PM
#26
ajeh avatar

ajeh

Oba-san

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

Re: TEXT field attribute not showing

I cannot reproduce this in v1.3.9d nor v1.3.9f ...

What happens if you switch to the Classic Template?

Just because it is an oddity ... what happens if you remove from the Option Names for your TEXT the:
-->

27 Aug 2010, 12:12 PM
#27
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: TEXT field attribute not showing

During upgrade did you install any other mods (or upgrade any current ones)?

If I recall, this could become a problem after installing some mods that remove core database features in zen ... specifically relating to removal of configuration values equal to "0" (zero).

Am I thinking properly Ajeh?

27 Aug 2010, 8:06 PM
#28
ajeh avatar

ajeh

Oba-san

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

Re: TEXT field attribute not showing

That could be the case ... there is something with I believe on of the add ons that had an error in the sql that altered something incorrectly and broke the attributes ...

I am trying to remember if it specifically broke the TEXT attributes ... :unsure:

I do know the fix is posted on the forum somewhere ... just have not had time to hunt that one down ...

It should be on one of my posts, if I am not mistaken ...

28 Aug 2010, 12:05 PM
#30
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: TEXT field attribute not showing

Here is some code I found that I used in the past to correct a similar issue with another store. Some if it may apply ... other portions (Image Handler) may not (if not installed).

Maybe this will help:

INSERT INTO `configuration` VALUES ('', 'Product option type Select', 'PRODUCTS_OPTIONS_TYPE_SELECT', '0', 'The number representing the Select type of product option.', 0, NULL, '2007-03-19 17:57:39', '2007-03-19 17:57:39', NULL, NULL);
INSERT INTO `configuration` VALUES ('', 'Upload prefix', 'UPLOAD_PREFIX', 'upload_', 'Prefix used to differentiate between upload options and other options', 0, NULL, '2007-03-19 17:57:39', '2007-03-19 17:57:39', NULL, NULL);
INSERT INTO `configuration` VALUES ('', 'Text prefix', 'TEXT_PREFIX', 'txt_', 'Prefix used to differentiate between text option values and other option values', 0, NULL, '2007-03-19 17:57:39', '2007-03-19 17:57:39', NULL, NULL);
INSERT INTO `configuration` VALUES ('', 'Image Handler Version', 'IH_VERSION', '2.0', 'This is used by image handler to check if the database is up to date with uploaded image handler files.', 0, 100, NULL, '2007-06-06 16:47:03', NULL, 'zen_cfg_textarea_small(');

To determine if these values are missing from the store (before you run the query) I ran this:

SELECT * FROM configuration WHERE configuration_group_id = 0;