Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2009
    Posts
    419
    Plugin Contributions
    0

    Default When deleting a product, do the unique attributes also delete?

    For example, if I had just one t-shirt in my store and the attribute name "Size" and the attribute values "Small", "Medium", and "Large" were only used by that product .... and I delete that product ... would that attribute name and values also be deleted?

    If not (which I believe is the answer), then is there a way to find out what attribute names and values are no longer being used by any product on the website?

    As mentioned in my recent thread here about cleaning up unused product images, I am trying to significantly clean up a bloated mis-managed database.

    Thanks for your help/advice.

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

    Default Re: When deleting a product, do the unique attributes also delete?

    You have option names and option values which are set up independent of any products, and attributes which are the application of option name/value sets to individual products. I'm not certain if individual attributes are deleted when the products they are associated with are deleted, though it seems likely. The option names and values are not deleted.

    This is not an elegant way to handle it, but if you try to delete an option value that is in use (applied as an attribute to a product), you will get a warning:
    This option has products and values linked to it - it is not safe to delete it.

  3. #3
    Join Date
    Feb 2009
    Posts
    419
    Plugin Contributions
    0

    Default Re: When deleting a product, do the unique attributes also delete?

    Glenn,

    You confirmed what I thought, but I wanted to double check with those that understand the scripts better than.

    Ahhh ... an error message when trying to delete attribute names/values. That would be handy and helpful.

    I'll bookmark this thread to remind me for when I get to that part of my to-do list.

    Thanks so much!

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

    Default Re: When deleting a product, do the unique attributes also delete?

    The warning also shows you which product(s) the value is linked to.

 

 

Similar Threads

  1. v150 Text attributes deleting and unfillable when there's an error
    By ShopVille in forum General Questions
    Replies: 8
    Last Post: 8 Sep 2014, 12:36 AM
  2. When using attributes, is there a way to also have a quantity box?
    By Household in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 29 Sep 2010, 02:54 PM
  3. Q- Image of product will delete when i delete the product ?
    By kimsonvu in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 2 Feb 2009, 05:58 AM
  4. if I delete a product, is the image also removed
    By Dralion in forum General Questions
    Replies: 1
    Last Post: 5 Jun 2007, 04:47 PM
  5. Delete product or category without deleting image
    By Jeffey in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 17 Mar 2007, 06:03 AM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR