• Resolved retroreiz

    (@retroreiz)


    Hello everyone,

    first of all, thank you very much for your great plugin.

    It has not bothered us so far, but there are customers who are bothered by the following from time to time.

    For products that are a variant and are sold out, the ‘Quantity & Add to basket’ field is still displayed. You cannot add anything to the shopping basket and the message appears that it is sold out, but there always seem to be customers who are bothered by this.

    I have already found out how to hide the ‘Add to basket’ button for sold out variants, see CSS below. But I can’t hide the field with the quantity for products that are sold out. Can you perhaps help me with this?

    button.single_add_to_cart_button.button.disabled.wc-variation-is-unavailable {
    display: none !important;
    }

    Thank you very much.

    Best regards,
    Andreas

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support CodeWooGeek Support

    (@codewoogeeksupport)

    Hello there,

    Good Day!!

    Thank you for your inquiry and kind words about our plugin.

    After reviewing the provided URL, it appears that the display of the “Quantity & Add to Basket” button for sold-out variants is managed by your theme, “Woodmart,” rather than by our plugin.

    We would like to clarify that our plugin is designed to display a subscription form based on the out-of-stock status of products and is not directly related to the “Add to Cart” or quantity functionalities. To address the issue of hiding the “Add to Cart/Quantity” field for sold-out variants, custom CSS or theme customization options may be necessary within Woodmart.

    Feel free to reach out if you have any more questions or require further assistance.

    Thanks.

    Thread Starter retroreiz

    (@retroreiz)

    Hello CodeWooGeek Support,

    thank you very much for your quick feedback.

    Yes probably the theme is the cause and can be solved with CSS, but I can’t find a way to say via CSS that it should be hidden when the variant is sold out.

    Since the Woodmart theme normally does not allow you to select a variant when it is sold out and your plugin overrides this function, I thought you might be able to see a solution via CSS if I show you the URL.

    Any CSS tips would be greatly appreciated.

    Best regards,
    Andreas

    Plugin Support CodeWooGeek Support

    (@codewoogeeksupport)

    Hello there,

    We’re sorry to inform you that it is not possible to hide the ‘Quantity’ and ‘Add to Cart’ fields using CSS alone, even with pseudo-selectors. However, we will work on including an option to hide these fields for sold-out variants using JavaScript in our upcoming version after cross-checking with the major theme to ensure theme compatibility.

    Thanks.

    Thread Starter retroreiz

    (@retroreiz)

    Hi CodeWooGeek Support,

    that sounds great. That would definitely be an enrichment for us.

    If there is anything I can do to help you with this, e.g. testing, please let me know.

    Have a pleasant day.

    Best regards,
    Andreas

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Quantity & Add to basket for variants that are sold out’ is closed to new replies.