Forums / Setting Up Categories, Products, Attributes / Bulk change the Attributes in MySQL

Bulk change the Attributes in MySQL

Locked

Started by pensive612 on 23 Oct 2006, 8:06 AM · Views: 3,137

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
23 Oct 2006, 8:06 AM
#1
pensive612 avatar

pensive612

Zen Follower

Join Date:
May 2006
Posts:
313
Plugin Contributions:
0

Bulk change the Attributes in MySQL

Hey everyone...

I have a customer who has manually put in about 300 attributes.. When I am looking over the site, I noticed she must have had the 'Attribute is a Display Only' button checked on all of them. Awesome...

Rather than have her edit all of them over by hand... is there a way I can bulk change them all in PHP MySQL? As well, as remove the 'This Attribute is default' ... I assume i could do it the same way.

I'm not very comfortable with MySQL just yet. and any help would be greatly appreciated.

Thanks so much, in advance...

  • pensive612
23 Oct 2006, 10:49 AM
#2
pensive612 avatar

pensive612

Zen Follower

Join Date:
May 2006
Posts:
313
Plugin Contributions:
0

Re: Bulk change the Attributes in MySQL

okay, just figured it out incase anyone needs to know for later.

UPDATE zen_products_attributes SET attributes_display_only=0

worked for me...

  • pensive612
23 Oct 2006, 1:13 PM
#3
ajeh avatar

ajeh

Oba-san

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

Re: Bulk change the Attributes in MySQL

Thanks for posting the solution to this ... that is exactly how to fix a global replace on the Attributes when you know the setting you need to update ...

NOTE: Always be sure to backup your database before attempting something like 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!