Top WooCommerce & WordPress Plugins › Forums › Min Max Default Quantity for WooCommerce › Default quantity to show minimum
- Support forum for the Min Max Default Quantity for WooCommerce.
- This topic has 6 replies, 3 voices, and was last updated 4 years ago by
WPWhale.
- AuthorPosts
-
November 16, 2019 at 8:17 pm #104050
mountain
Guest1. 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.- This topic was modified 6 months, 2 weeks ago by
Omar.
November 17, 2019 at 7:24 pm #104051mountain
GuestI 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.
November 18, 2019 at 6:04 pm #104052Hi,
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.
November 22, 2019 at 2:09 pm #104053Hi,
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.
November 24, 2019 at 10:03 pm #104054mountain
GuestTom,
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.November 25, 2019 at 2:58 pm #104055mountain
GuestI 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.
November 25, 2019 at 8:33 pm #104056WPWhale
ModeratorHi,
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,
- This topic was modified 6 months, 2 weeks ago by
- AuthorPosts
- You must be logged in to reply to this topic.