Default quantity to show minimum

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #104050
    mountain
    Guest

    1. Is it possible to have the default quantity displayed in the drop-down menu to be the minimum – 1 in my case? Currently, it is displayed as blank even though I’ve enabled General>Force minimum quantity.
    2. Is it possible to add the text “Quantity” to the left of the drop-down menu using Styling or otherwise?
    Thanks.

    #104051
    mountain
    Guest

    I found these answers to my questions.
    1. The default value of 1 was being blanked out on items that were out of stock which makes sense. It does display on items in stock.
    2. I tried using CSS :before to add “Quantity” before the drop-down menu but it did not work – it was always overridden.

    I like this plugin because it allows setting max/min value and also converts the text box to a drop-down menu. I’ll be purchasing a site license.

    #104052
    Tom Anbinder
    Moderator
    Plugin Support

    Hi,

    Sorry for the late reply.

    Regarding nr. 2 – I will try to add some option for this in the next plugin version, however, I’ve just tried adding it with CSS and it seems to be working (at least with Storefront theme). This is my custom CSS:

    div.quantity:before {
        content: "Quantity";
    }

    Please let me know if that helped.

    #104053
    Tom Anbinder
    Moderator
    Plugin Support

    Hi,

    In case you still need this – we’ve released new plugin version 1.8.1, where I’ve added two new “Template > Before” and “Template > After” options to “WooCommerce > Settings > Product Quantity > Quantity Dropdown”, so you can now add the required text directly, without CSS.

    Please let me know if it’s not working correctly. And if you like the plugin, please consider leaving me a rating.

    #104054
    mountain
    Guest

    Tom,
    Your “template” addition to the plugin works great. I can now add text before or after the quantity drop-down menu. I added the text “Quantity”. However, I was wondering if this added text could only appear on product pages and not on the Cart page? The Cart page already has the drop-down menu well labeled under a column also labeled Quantity.

    By the way, the CSS you mentioned did not work in the TwentySeventeen theme.
    Thanks.

    #104055
    mountain
    Guest

    I looked at the issue of added text before/after the quantity drop-down menu appearing on the Cart page some more. It happens on IE 11 but not newer versions of Chrome.

    #104056
    WPWhale
    Moderator

    Hi,

    Sorry but the template feature is only to manage the product page, to hide it on the cart menu, it might be possible using CSS by finding the class that controls the column, and then use the same CSS code mentioned above with changing class name.

    Regards,

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