Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WC Marketplace › Once buy for customers.
Tagged: bulk buy
- This topic has 5 replies, 2 voices, and was last updated 4 years, 7 months ago by Sushobhan.
- AuthorPosts
- May 6, 2020 at 4:46 am #127199krejzamatesParticipant
Hello, I created a multi vendors marketplace.
We are preferring to sell virtual items for once buy ( only 1 stück ), but I can’t search the option. Where I can find a do this? Thanks! I hope that you understand. - May 6, 2020 at 2:33 pm #127362SushobhanKeymaster
Hi,
Thanks for getting in touch with us!
Sorry, I couldn’t fully understand your query. If I’m correct, you want to sell your products (virtual items) only once. You can achieve this by configuring it’s inventory. Go to Inventory tab and from there enable Manage stock?. Set Stock quantity as 1 and Allow backorders? to ‘Do not allow’. Ref: https://imgur.com/0Gl8WuW
Looking forward to helping you.
Thank You! - May 6, 2020 at 2:52 pm #127370krejzamatesParticipant
Hello, Thanks for response. The vendors on my website will sell the virtual items ALWAYS once. Can I LIKE ADMIN set it, like they cannot (vendors) set something the inventory tab and others?
- May 6, 2020 at 3:26 pm #127395krejzamatesParticipant
Like they cannot see this gyazo.com/e07d24db3b47a69efc20507bf49bef6f
- May 6, 2020 at 3:27 pm #127397krejzamatesParticipant
I am really sorry for my annoying questions.
- May 6, 2020 at 11:32 pm #127651SushobhanKeymaster
Well, hiding inventory tab from vendors can be easily done from WCFM admin dashboard >> Capability page see here- https://imgur.com/lUQT1KG. But setting all the products inventory values via code requires customization. You can use the following snippet (will not work on variable product type) to get the idea-
add_filter('wcfm_product_data_factory', function($data) { $data['manage_stock'] = true; $data['backorders'] = 'no'; $data['stock_quantity'] = 1; return $data; });
Add this code to your child theme’s functions.php
In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/
Let me know how this goes.
Thanks!
- AuthorPosts
- You must be logged in to reply to this topic.