Support » Plugin: WooCommerce » delete attribute at the same time than linked variation

  • Resolved bidiesman

    (@bidiesman)


    Hello,
    I would like to know if it’s possible that when we delete a variation from a variable product then at the same time the attribute related value is as well deleted from that product.
    currently it’s not the case.

    I have currently plenty product with few variation left like small,XL but that product has still in his attribute small,medium,Large,XL and not only Small,XL

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Ross V. a11n

    (@rossviviano)

    Automattic Happiness Engineer

    Hi there,

    Sorry for the delay.

    I would like to know if it’s possible that when we delete a variation from a variable product then at the same time the attribute related value is as well deleted from that product.
    currently it’s not the case.

    In short; this isn’t possible without customizations to the code, as this wouldn’t be beneficial for products with multiple attributes.

    For example, if a product has a variation that’s large and red, removing those attributes as well would prevent them from showing in other variations.

    Best,

    Ross

    Thread Starter bidiesman

    (@bidiesman)

    Okay,
    But then simply add the following conditions:
    Delete the attribute automatically if it’s not used in any of other variations.

    Based on your example :
    Red large.

    If there is no more large in any other colour then remove large. But don’t remove large from attribute if there is still another large in another colour.

    I agree that Some users will prefer to keep attributed with as much as attribute as possible in order to provide the information to customers that this product exist from Xs to xxxl or Xs to Large for example.

    But for other users, in my case, these attribute not related to any existing variation left are preventing to use filter properly in order to display available size left in stock.

    The current filter plugin I’m using is actually basing his result on product attribute availability and not on variation.
    So my filter result are irrelevant for product still having attribute but not anymore the variation.

    What if this can be a checkbox option from next WooCommerce release ?
    X Delete attribute if not used in any existing variation?

    By the way then you for your answer

    Plugin Support Ross V. a11n

    (@rossviviano)

    Automattic Happiness Engineer

    Hi again,

    Thanks for the explanation, and I see your point. It would be great to have you add your ideas to the Ideas Board, which is where developers go to look for future plugin features and improvements.

    In the meantime, you may want to get in touch with a developer who can write up this customization for you. If you want to explore that route, e highly recommend contacting one of the services on our Customizations page.

    Best,

    Ross

    Thread Starter bidiesman

    (@bidiesman)

    Hi Ross,
    As I really need this for my webshop having a lot of products and needing a relevant filtered result.

    I did hire a developper. Yas and his amazing advanced bulk edit.
    https://wpmelon.com/

    As I hate to have plenty plugin. I hope this can be implemented either in his plugin or in woocommerce plugin itself in a nearly feature.
    Is it possible to get in touch with a woocommerce developper in order to discuss about the implementation of that code inside woocommerce in a nearly future?
    you can send me an MP.
    via: billykite.be/contact

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘delete attribute at the same time than linked variation’ is closed to new replies.