Forums / Setting Up Categories, Products, Attributes / Attributes not working.... Read most of the threads but cant figure out why?

Attributes not working.... Read most of the threads but cant figure out why?

Started by hapishyguy on 30 Nov 2012, 5:53 AM · Views: 1,353

Results 1 to 18 of 18
30 Nov 2012, 5:53 AM
#1
hapishyguy avatar

hapishyguy

New Zenner

Join Date:
Sep 2011
Posts:
14
Plugin Contributions:
0

Attributes not working.... Read most of the threads but cant figure out why?

HI,

Most of the times I am able to figure out how Zencart works but this attributes thing is not working for me. I read the tutorial also but no help. Below is what is happening. Any help would be appreciated.

So, I have a product and I want to add attribute "Color"

I went to Catalog> Option name manager and put an option "Color". See the screenshot. Attachment 11556
Attachment 11557

Now I go to "Option Values" to add the "Red" to it. Now when I put "Red" in "Option Value" field and leave the sort order blank and click on "Insert" I get the below error.
Attachment 11558

I do not know what is the problem. Even when I put any value in the "Sort Order" field or I do not put any value, I still get the same error.
"Global Settings" ON or OFF, I get the same error.

I want to add this attribute "Color" to a specific product rather than to a category. So I believe I will have to do this with "Global Settings" ON but the issue is that I simply can not add any value eg. "Red" in this case.

Any help will be appreciated. My site is http://FlyHighBuy.com

30 Nov 2012, 6:22 AM
#2
kobra avatar

kobra

Black Belt

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

Re: Attributes not working.... Read most of the threads but cant figure out why?

The first column when adding an option value is prefilled with a number
Next to it is a drop down menu where you select the "Option Name"
Next to it is an entry block where you enter the "Option value name" (Red)
Then insert

Is this what you are doing??

Zen-Venom Get Bitten

30 Nov 2012, 6:34 AM
#3
hapishyguy avatar

hapishyguy

New Zenner

Join Date:
Sep 2011
Posts:
14
Plugin Contributions:
0

Re: Attributes not working.... Read most of the threads but cant figure out why?

Exactly. That's exactly what I am doing and I get error of which I have attached the screenshot in the first/original post.

30 Nov 2012, 6:35 AM
#4
kobra avatar

kobra

Black Belt

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

Re: Attributes not working.... Read most of the threads but cant figure out why?

When you reply - scroll up and read posting tips
Provide the information

Zen-Venom Get Bitten

30 Nov 2012, 6:44 AM
#5
hapishyguy avatar

hapishyguy

New Zenner

Join Date:
Sep 2011
Posts:
14
Plugin Contributions:
0

Re: Attributes not working.... Read most of the threads but cant figure out why?

  • The version I am using is 1.3.9.h
  • No, my site has not been upgraded. I installed 1.3.9h and working on it since. Will think of moving to 1.5.
  • I have installed "RSS Feed", "TY Package Tracker", "USPS Auto Fill Config", "Add Tracking ID", "Super Order",
  • I installed it through my hosting company "GoDaddy"
  • I have installed the template "all_business" by Picaflor Azul

I do not know when this problem started. Right now I am adding every product but it has become a dauting task so I have to have attributes set up.

30 Nov 2012, 7:20 AM
#6
kobra avatar

kobra

Black Belt

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

Re: Attributes not working.... Read most of the threads but cant figure out why?

If you do not have any attributes successfully assigned currently you could try using phpmyadmin and selecting the products_options_values table and emptying it

Then try to create one

Zen-Venom Get Bitten

30 Nov 2012, 3:20 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Attributes not working.... Read most of the threads but cant figure out why?

NOTE: if you try to remake the table:
products_options_values

make sure that you run both:

#
# Table structure for table 'products_options_values'
#

DROP TABLE IF EXISTS products_options_values;
CREATE TABLE products_options_values (
  products_options_values_id int(11) NOT NULL default '0',
  language_id int(11) NOT NULL default '1',
  products_options_values_name varchar(64) NOT NULL default '',
  products_options_values_sort_order int(11) NOT NULL default '0',
  PRIMARY KEY (products_options_values_id,language_id),
  KEY idx_products_options_values_name_zen (products_options_values_name),
  KEY idx_products_options_values_sort_order_zen (products_options_values_sort_order)
) ENGINE=MyISAM;

and add the TEXT Option Value with:

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

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!

1 Dec 2012, 1:17 AM
#8
hapishyguy avatar

hapishyguy

New Zenner

Join Date:
Sep 2011
Posts:
14
Plugin Contributions:
0

Re: Attributes not working.... Read most of the threads but cant figure out why?

Thanks Kobra. Your solution worked. Thanks Ajeh for your caution :)

Now I can add the attributes. Actually 1 was assigned to zip files and thus "id 1" was not being assigned to the attribute "Color".
Now another issue. I go to "Attributes Controller" and select the product from "Categories". Then I go and click on "Color" from the "Option Name" field. That pops various colors that I have added. I select the colors that I want and then click on "Insert". After 4 or 5 seconds it brings me back to the main admin page. Now, I go to the product to which I have added the attribute and I see that there is nothing added there. I tried it so many times but nothing. Any idea what I am missing here or what could be the issue. Below is the screen shot of what I am doing. Attachment 11564

2 Dec 2012, 6:49 PM
#10
hapishyguy avatar

hapishyguy

New Zenner

Join Date:
Sep 2011
Posts:
14
Plugin Contributions:
0

Re: Attributes not working.... Read most of the threads but cant figure out why?

Any help?

5 Dec 2012, 8:00 PM
#11
hapishyguy avatar

hapishyguy

New Zenner

Join Date:
Sep 2011
Posts:
14
Plugin Contributions:
0

Re: Attributes not working.... Read most of the threads but cant figure out why?

I guess no help yet.
I have tried many times but couldnt found whats wrong.

21 Dec 2012, 7:43 AM
#12
hapishyguy avatar

hapishyguy

New Zenner

Join Date:
Sep 2011
Posts:
14
Plugin Contributions:
0

Re: Attributes not working.... Read most of the threads but cant figure out why?

Still hoping for some help.

21 Dec 2012, 7:54 AM
#13
hapishyguy avatar

hapishyguy

New Zenner

Join Date:
Sep 2011
Posts:
14
Plugin Contributions:
0

Re: Attributes not working.... Read most of the threads but cant figure out why?

Want to know if "Sort Order" option has to do something with this?

21 Dec 2012, 5:02 PM
#14
kobra avatar

kobra

Black Belt

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

Re: Attributes not working.... Read most of the threads but cant figure out why?

I select the colors that I want and then click on "Insert".
Colors
You must assign them one at a time

Zen-Venom Get Bitten

21 Dec 2012, 5:05 PM
#15
hapishyguy avatar

hapishyguy

New Zenner

Join Date:
Sep 2011
Posts:
14
Plugin Contributions:
0

Re: Attributes not working.... Read most of the threads but cant figure out why?

Did that too but still dont work. Really cant figure out what is the problem.
I was trying to put something as a download product also but again its not working. Why? because attributes assigning is not working.

21 Dec 2012, 7:09 PM
#16
kobra avatar

kobra

Black Belt

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

Re: Attributes not working.... Read most of the threads but cant figure out why?

I can not replicate this issue on a stock install of v1.3.9h

Might try reloading all the admin files

Zen-Venom Get Bitten

21 Dec 2012, 7:21 PM
#17
hapishyguy avatar

hapishyguy

New Zenner

Join Date:
Sep 2011
Posts:
14
Plugin Contributions:
0

Re: Attributes not working.... Read most of the threads but cant figure out why?

Yeah, but reloading admin files will lose me my modules. Will it or not?

21 Dec 2012, 10:13 PM
#18
kobra avatar

kobra

Black Belt

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

Re: Attributes not working.... Read most of the threads but cant figure out why?

Yeah, but reloading admin files will lose me my modules
If so then this would pinpoint the issue to one of the mods

Zen-Venom Get Bitten