Results 1 to 3 of 3
  1. #1
    Join Date
    May 2006
    Posts
    316
    Plugin Contributions
    0

    Default 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...

  2. #2
    Join Date
    May 2006
    Posts
    316
    Plugin Contributions
    0

    Default 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...

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,717
    Plugin Contributions
    6

    Default 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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

 

 

Similar Threads

  1. Attributes sort order for invoice/packing slip
    By aeolidia in forum Managing Customers and Orders
    Replies: 6
    Last Post: 8 Nov 2006, 11:15 PM
  2. Please Help - Attributes & Must Select
    By pattij in forum General Questions
    Replies: 3
    Last Post: 26 Sep 2006, 05:06 PM
  3. What's New in upcoming v1.3.5
    By DrByte in forum Zen Cart Release Announcements
    Replies: 0
    Last Post: 4 Sep 2006, 02:22 AM
  4. Product info pages showing "add to cart" only for products with attributes
    By hrm in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 22 Aug 2006, 03:24 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •