Forums / General Questions / Remove Attribute from all products?

Remove Attribute from all products?

Views: 3,611

Results 1 to 12 of 12
7 Feb 2010, 9:01 PM
#1
blindeyecreative avatar

blindeyecreative

New Zenner

Join Date:
Nov 2009
Posts:
25
Plugin Contributions:
0

Remove Attribute from all products?

I would like to remove an attribute from all products (600+) but I've run into an issue because it has a text value.

I see the option to remove an attribute from all categories but because the option value is a text box, it does not appear in the selection choices.

Is there a way to remove this option from all products without going through every product manually?

Thanks,
Jon

7 Feb 2010, 9:30 PM
#2
blindeyecreative avatar

blindeyecreative

New Zenner

Join Date:
Nov 2009
Posts:
25
Plugin Contributions:
0

Re: Remove Attribute from all products?

Like maybe with a PHP SQL patch or something?

(sorry to add this my last post was no longer able to be edited.)

7 Feb 2010, 11:40 PM
#3
ajeh avatar

ajeh

Oba-san

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

Re: Remove Attribute from all products?

In phpMyAdmin, test for:

SELECT from products_attributes WHERE options_id= XX and options_values_id =0;

where XX is the Options Name options_id ... are those the ones you want to delete?

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!

8 Feb 2010, 4:11 AM
#4
blindeyecreative avatar

blindeyecreative

New Zenner

Join Date:
Nov 2009
Posts:
25
Plugin Contributions:
0

Re: Remove Attribute from all products?

The option ID is #65 and I want to remove it from all products.

There is no option value because it is text.

8 Feb 2010, 4:17 AM
#5
ajeh avatar

ajeh

Oba-san

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

Re: Remove Attribute from all products?

Backup your database first ...

After you have backed up the database ... run the command:

DELETE from products_attributes WHERE options_id= 65 and options_values_id =0;

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!

8 Feb 2010, 2:22 PM
#6
blindeyecreative avatar

blindeyecreative

New Zenner

Join Date:
Nov 2009
Posts:
25
Plugin Contributions:
0

Re: Remove Attribute from all products?

Thanks. That worked perfectly.

4 Apr 2011, 2:37 PM
#7
niallo58 avatar

niallo58

New Zenner

Join Date:
Feb 2011
Posts:
34
Plugin Contributions:
0

Re: Remove Attribute from all products?

is there a way just to remove the attributes from a particular section of items, i need to do this for my website http://mauricedoodysales.ie/
without wiping everything in it?

Thanks

4 Apr 2011, 2:56 PM
#8
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Remove Attribute from all products?

NiallO58:

is there a way just to remove the attributes from a particular section of items, i need to do this for my website http://mauricedoodysales.ie/
without wiping everything in it?

Thanks

admin -> catalog -> Attributes Controller

at the top of the page you'll find a row of buttons (one of which is "Delete All"

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

1 Dec 2011, 2:51 PM
#9
hairweavon avatar

hairweavon

New Zenner

Join Date:
Dec 2011
Posts:
2
Plugin Contributions:
0

Re: Remove Attribute from all products?

Hi,

For one of my product categories, I have set no attributes for these products but It keeps asking my customers to select an attribute. when there is clearly 'No Attributes Defined for the Product'

The above thread suggest "Delete All" in
admin -> catalog -> Attributes Controller
But this category does not show the 'delete all' option.

Can anyone help please. You can experience the issue here at http://www.hairweavon.com/african-essence-weaves-shampoo-p-75.html

Thanks in advance

1 Dec 2011, 3:18 PM
#10
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Remove Attribute from all products?

I had no problem adding that product to cart, a couple of times, with or without a product with attributes already in the cart.

I do notice an oddity in view source of the product with no attributes:```html

<!--bof Attributes Module --> <br> <!--eof Attributes Module -->

There should be nothing at all between the comments if there are no attributes.html

<!--bof Attributes Module --> <!--eof Attributes Module -->
1 Dec 2011, 3:44 PM
#11
hairweavon avatar

hairweavon

New Zenner

Join Date:
Dec 2011
Posts:
2
Plugin Contributions:
0

Re: Remove Attribute from all products?

hi,

thanks for your reply, Unfortunately I am not very technical and cant edit source code. So you think this is a code error?

I deleted the attribute all together and created a new one and its still asking me to select a color (the old attribute). would I need to delet it from the database also?

1 Dec 2011, 3:50 PM
#12
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Remove Attribute from all products?

That product did not ask me to select anything, so you need to find out why it is behaving that way for you. Such a thing should not be dependent on who is visiting.

If you did not edit any code, then someone else did. What mods do you have on your site affecting attributes? Who else has worked on your site?