Viewing 3 replies - 1 through 3 (of 3 total)
  • Glad you like the plugin, to help with quantity rules on category pages I created another plugin called WooCommerce Thumbnail Input Quantities. (There should be a few notices on your admin panel asking to download).

    This plugin creates input boxes on all product thumbnails and syncs with APQ to display the correct quantities.

    Here’s the link: https://www.ads-software.com/plugins/woocommerce-thumbnail-input-quantities/

    Thanks,

    Thread Starter namelessound

    (@namelessound)

    Hi J.Tyler

    I have that plugin but it not working correctly instead of nice layout I get quantity block without navigation. That is way I am looking for work around and would like to have no quantity input on thumbnails but instead of it single button add to shopping bag which add minimum quantity. My site address eshop.baltictex.com

    Ah ok, yeah neither plugin will allow that to happen by default.

    Theoretically you could force the minimum quantity using the ‘woocommerce_add_to_cart_validation’ hook. There would be several exceptions to this rule however so a bit of logic would also have to be added to validate it.

    You best bet would be to hide the thumbnail input quantity box my plugin includes. This way the data attribute tied to the button would still be there with the minimum quantity but no input box would be present.

    To do this simply apply the following styles:

    .thumbnail-quantity {
        display:none;
    }

    I tested this out on my own dev site and it seems to work fine.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add to cart on thumbnails gives an error’ is closed to new replies.