Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Woocommerce possible bug

  • Hello, I am using a Woocommerce plugin. Everything is OK, but I can see strange styling of quantity button on one specific type of product (and only this one) – product with variations with global stock and 0 items (out of stock).

    Preview: https://capture.dropbox.com/FpRPxZNb1JngocUx There should be no quantity button (item is out of stock).

    Probably it is something in this part of GP Premium code:

    .do-quantity-buttons form .quantity:not(.buttons-added):not(.hidden):after, .do-quantity-buttons form .quantity:not(.buttons-added):not(.hidden):before, .woocommerce form .quantity.buttons-added .minus, .woocommerce form .quantity.buttons-added .plus, .woocommerce form .quantity.buttons-added .qty {
    min-height: 50px;
    }

    Please, can you help me? Thank you very much!

  • Hi Renenekuda,

    That’s odd. Can you try #1 here to debug: https://docs.generatepress.com/article/debugging-tips/

    It’s recommended to backup your site before proceeding with this.

  • Yes, I did it on my staging site. When I have activated only GP Premium and GP Blocks plugins + standard Woocommerce, there is still this bug: https://capture.dropbox.com/0a8QRWDE5LURXlJj

    I put my admin login to this staging site into private section.

  • Hi there,

    its a known bug that Woo 7.5 caused – that we patched in GPP 2.3 … but it seems Woo just likes to break the fixes we make to fix there breakages.

    For now try adding this CSS:

    .outofstock div.quantity {
        display: none !important;
    }
  • Uff, OK, nice 🙂

    Your code is working, David. Thank you very much!

  • Glad to be of help!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.