Support » Plugin: Variation Swatches for WooCommerce » Inactive for non-stock variations

  • Resolved makoer

    (@makoer)


    Hey, Ahmed,

    I love your plugin. It so powerful.
    it is possible to inactivate the variation for non-stock articles?
    The variation should be see, but not choiceable – like overlay gray.

    best regards,
    Marvin

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi there,

    Thanks for the suggestion. Could you drop your feature request here: https://www.facebook.com/groups/GetWooPlugins/

    Our developer team would not it download and hopefully make it available in the coming version.

    Thank you

    Hey,

    yes I do it, but you have to add me to the group. I send you a request.

    best regards,
    Marvin

    I have a question on the same topic…but wanting a different outcome. I can post it on FB, but then how do I track it?

    Here is what I will post on FB:
    The Variation Swatches plugin does not seem to respect the out of stock status of individual variations. I would like to have the swatch color hidden from the customer entirely if that particular color is out of stock.

    If I disable the swatches plugin, then this behavior works as expected, the the name of the color in the default Woo variation drop down list is hidden by WOO, (when the checkbox for Products>Inventory>Out of Stock Visibility is checked).

    When swatches plugin in enabled, the color swatches show up. Granted, they are not clickable, but I want them to be hidden altogether. Is there a way to make that happen?

    As a side note, I noticed that Woo’s most recentupdate to 3.3.2 had the following note in its bug fix list: Fix ā€“ Set woocommerce_hide_invisible_variations to true so disabled variation attributes are hidden on product pages. So they may have just changed how this behavior works.

    Also, i did find a snippet of php code that is supposed to fix this issue, but it did not work for me so I am not using it. If you are interested, here is the link: Found this code are this site. https://iconicwp.com/blog/hide-stock-products-woocommerce-catalog-pages/

    Plugin Author Emran Ahmed

    (@emranahmed)

    Nice post. Some special user have different use-case for woocommerce, there is a class applied on disabled variation you can apply some css to hide that.
    like: .variable-item.disabled{ display: none; } and it will not show on out of stock product.

    Hello!

    In my case it seems like the disabled class is not being added anymore. I remember this was working when i first started developing my site some weeks ago.

    Is it possible? Or maybe i’m missing something?

    Cheers šŸ™‚

    Plugin Author Emran Ahmed

    (@emranahmed)

    Is it possible to provide site link to check?

    Thank you

    Hello! im looking for exactly this:

    it is possible to inactivate the variation for non-stock articles?
    The variation should be see, but not choiceable ā€“ like overlay gray.

    Is it possible??? Thanks!!!

    Hello Emran,

    I have the same issue and there is no CSS class that we can target.

    Could you please just add a class to the variation like var-out-of-stock?

    Many thanks in advance.

    Ammar

    • This reply was modified 2 years, 5 months ago by ammarjabakji.
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Inactive for non-stock variations’ is closed to new replies.