Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Nov 2009
    Posts
    25
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Nov 2009
    Posts
    25
    Plugin Contributions
    0

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

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

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

  4. #4
    Join Date
    Nov 2009
    Posts
    25
    Plugin Contributions
    0

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

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Remove Attribute from all products?

    Backup your database first ...

    After you have backed up the database ... run the command:
    Code:
    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!

  6. #6
    Join Date
    Nov 2009
    Posts
    25
    Plugin Contributions
    0

    Default Re: Remove Attribute from all products?

    Thanks. That worked perfectly.

  7. #7
    Join Date
    Feb 2011
    Posts
    34
    Plugin Contributions
    0

    Default 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

  8. #8
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Remove Attribute from all products?

    Quote Originally Posted by NiallO58 View Post
    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"

  9. #9
    Join Date
    Dec 2011
    Posts
    2
    Plugin Contributions
    0

    Default 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-es...mpoo-p-75.html

    Thanks in advance

  10. #10
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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 Code:
    <!--bof Attributes Module -->
    
     <br>
    
    <!--eof Attributes Module -->
    There should be nothing at all between the comments if there are no attributes.
    HTML Code:
    <!--bof Attributes Module -->
    <!--eof Attributes Module -->
    Perhaps you modified the code for layout purposes? The <br> is not correct XHTML ( <br /> ) and thus not from the stock code.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. remove title website from all products
    By dmagic in forum General Questions
    Replies: 4
    Last Post: 25 Sep 2012, 08:23 AM
  2. Remove text attribute from all products
    By Justrimless in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 3 Dec 2010, 01:38 PM
  3. Remove attribute from all items
    By makenoiz in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 10 Mar 2009, 08:07 AM
  4. remove all products link from homepage
    By jdavey in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 21 May 2007, 09:12 PM
  5. Remove Document type from All Products listings
    By ddk632 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 23 Jun 2006, 08:35 AM

Posting Permissions

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