How to add custom order status to WordPress multi vendor marketplace

To operate an e-commerce store, you must maintain a specific side. One important aspect is managing customer orders. If the store is provided by woocommerce, you will have an existing order management system. However, what should I do when I need to add a custom order status? Why do I need to customize the order status? In general, customization is necessary to manage the order management flow in various situations. If you have delivery related business, you must add an order status, such as \
This is why dokan is needed. It not only converts the market display to a multi vendor market display, but also provides the flexibility to add custom order status. Therefore, this blog will show you the whole process. Just do it Add custom order status for dokan order. You can add custom order status for customer order without performing too many operations. You can add some of the code we provide and generate as many order types as you like. To add a custom order status, you must open the parent topic folder or sub topic folder. There functions You can find the PHP file. Open the file using a text editor. The
After opening the file, copy the following code to the desired location in the editor\/** Add new custom status for WC order statuses * * @param array $order\u statuses * * @return array $order\u statuses * \/ function dokan\u add\new\custom\order\u status ($order\u statuses) {$order\u statuses[‘wc rejected’] = \u x (‘rejected’,’order status’,’text\u domain’); $order\u statuses[‘wc prepare delivery’] =’u x (‘prepare for delivery’,’order status’,’text\u domain’); $order\u States [‘wc delivery completed’] =’u x (‘delivery completed’,’order status’,’text\u domain’); Return $order_states;} Add\u filter (‘wc\u order\u states’,’dokan\u add\u new\custom\u order\u status’, 12, 1); \/ *** Add new custom status button class on order status * * @param string $text * @param string $status * * @return string $text * \/ function dokan\u add\u custom\order\status\button\u class ($text, $status) {switch ($status) {case’wc rejected’: case’rejected’: $text =’danger’; break; case’wc prepare delivery’: case’prepare delivery’: $text =’info’; break; case’wc delivery completed’: case’delivery completed’: $text =’success’; break;} Return $text;} Add\u filter (‘dokan\u get\u order\u status\u class’,’dokan\u add\u custom\u order\u status\u button\u class’, 10, 2); \/ *** Custom order status translated * * @param string $text * @param string $status * * @return string $text * \/ funct
Ion dokan_add_custom_order_status_translated ($text, $status) {switch ($status) {case’wc rejected’: case’rejected’: $text = \u (‘rejected updated’,’text\u domain’); break; case’wc prepare delivery’: case’prepare delivery’: $text = \u (‘prepare for delivery updated’,’text\u domain’); break; case’wc delivery completed’: case’delivery completed’: $text =__ (‘delivery completed updated’,’text\u domain’); Break;} Return $text;} Add\u filter (‘dokan\u get\order\status\u translated’,’dokan\u add\u custom\order\status\u translated’, 10, 2); This code helps to add custom order status for customer orders. What to do? I’ll tell you The
To add an order status, first access the class \
Case’wc awarding payment’: case’awarding payment’: $text =’success’; Break; That’s not all. To display after an update, you must add CSS to the button. In the class, add the code to the \
After selecting this option, you can see the perfect display of the status button. Male dokan is supported by more than 60000 market places worldwide. Male dokan is one of the most powerful multi vendor plug-ins provided by woocommerce. Advanced features and rich features can create any type of market display. 30 minutes is enough! Dokan provides a successful implementation of importing the woocommerce function into the front end. Functions include: Multi step setup wizard (easy to register as a customer or supplier) store SEO (for better search visibility) specialty store revenue, Sales reports and vendor lists powerful and rich set of additional features real-time search options front-end parts contact form and integrated product customization delivery flexible refund options store support options open source and customizable more. Read: the main functions and modules of dokan are clear at a glance! The
It is not surprising that dokan is ahead and has reached the milestone of more than 60000 active installations. Therefore, if you want to launch a multi vendor website, you must choose dokan. Don’t let people down.
I’m sure. Conclusion so you can see it now. Using dokan to add custom order status to WordPress multi vendor market place is only a few steps away. WordPress is one of the best CMS in the world because it is both an open platform and a collection of plug-ins. You can use these plug-ins to create any type of Web site. The
Therefore, if there are woocommerce, dokan and other plug-ins, it is cake fragments that create multi vendor websites. You can also easily add some code with little customization. Use dokan multivendor now!

Author:

Leave a Reply

Your email address will not be published. Required fields are marked *