set quantity field

This topic contains 5 reply and 2 voices, and was last updated by towhid 8 years, 11 months ago
Viewing 5 Posts - 1 through 5 (of 5 total)
Author Posts
May 8, 2015 at 5:20 pm 43407
towhid Hi, Is it possible to let users fill in the amount of items left (stock). I know there is a stock meta key but how does that work? _stock as a text field and then let the user fill in a number? Thanks!
May 9, 2015 at 11:02 am 43436
towhid towhid

Hello Fernon,

Step 1: From “Custom Field” select “Text” field and set title as – “Stock”. Which will allow users to set their stock.

Step 2: Use meta key: _stock

Please check this documentation to know more about the process – http://docs.wedevs.com/woocommerce-with-wp-user-frontend-pro-tutorial-part-1/

Please let me know the result after finish above works.

Thank you 🙂

May 21, 2015 at 8:22 pm 44848
Fernon c Fernon c

Hi Towhid,

Thanks for your response!

Unfortunately it doesn’t work. Users are still able to choose an unlimited amount of that product. So for example if someone puts 3 in the _stock field. You can still buy 9.

see screenshot:

[img]https://www.imageupload.co.uk/images/2015/05/21/ScreenShot2015-05-21at4.20.28PM.png[/img]

May 23, 2015 at 3:41 pm 44955
towhid towhid

Hello Fernon,

Make sure you have not enabled “Allow Backorders? = Do not Allow”

Please check this screenshot.
Order

Thanks

May 23, 2015 at 3:44 pm 44956
Fernon c Fernon c

Thanks, but how does a user enable this setting on the front-end for his/her product?

May 23, 2015 at 5:23 pm 44972
towhid towhid

Hello Fernon,

I am really sorry to say we do not have this kind of feature right now. If you need this function urgent you can customize on your own you can hire a developer.

Thanks

Viewing 5 Posts - 1 through 5 (of 5 total)