Default stock set to 1
Viewing 2 Posts - 1 through 2 (of 2 total)
Author | Posts |
---|---|
December 25, 2014 at 4:04 am 32952 | |
Hi, I'm using dokan plugin. I want to make it so when a user adds a product, stock management is turned on by default and the stock is set to 1. Can you help me do that? | |
December 25, 2014 at 6:37 am 32954 | |
I have managed to do this myself. This is how I did it: Inside the file classes/template-shortcodes.php around line 145 just after
I have added the following code
I hope this helps the other people trying to do this. | |
December 27, 2014 at 12:11 pm 32975 | |
Hello Stephen, Very well solution. I have tested and it works for me. Hope it will help other people if they want to. Thank You 🙂 |
Viewing 2 Posts - 1 through 2 (of 2 total)