Deactivate products when deactivating seller
Author | Posts |
---|---|
December 20, 2014 at 4:53 pm 32681 | |
Is there a way I can deactivate products when deactivating a seller? | |
December 20, 2014 at 8:44 pm 32698 | |
Sekander Badsha | Hello Tor, You can switch to the sellers account from wp-admin -> users and then you can change the post status as draft. Or you can use our Seller Vacation add-on http://wedevs.com/plugin/dokan/seller-vacation/ when you enable the vacation mode, all the products go offline instantly. |
December 20, 2014 at 8:46 pm 32699 | |
Tor B | OK, thank you. |
December 21, 2014 at 3:44 pm 32734 | |
Tor B | Activating the Seller Vacation plugin prevents the site front page from displaying… if I deactivate the plugin, the site displays fine again. Have done this several times with the same result. |
December 21, 2014 at 5:05 pm 32738 | |
Nayem | Hello Tor B, Please navigate to wp-content/plugin/dokan-seller-vacation and open dokan-seller-vacation.php file. In line number 139-154 replace that function to
Hope everything will work fine. Please check and let me know. |
December 21, 2014 at 5:31 pm 32740 | |
Tor B | It works in a mysterious way 🙂 |
December 21, 2014 at 5:47 pm 32741 | |
Tor B | So, how does the seller vacation plugin really work? I have made a custom seller page, and it seems all products is displayed without any vacation notice…. so I guess this plugin does some changes to the original “seller page” which I do not use? |
December 21, 2014 at 5:53 pm 32743 | |
Nayem | Hello Tor B, You have to set your vacation notice from seller dashboard -> settings. In the dashboard setting page you will find the settings for seller vacation. Here is a screen shot of that – . If you have any question then please start a new topic. Because you have already mark this topic as resolved. Thank you 🙂 |
December 21, 2014 at 5:56 pm 32744 | |
Tor B | I have done so, but no notice is given – the products are still displayed. My question is what file(s) is changed (if any) when activating the plugin, in case this has something to do with overriding the standard template in a child theme. |
December 21, 2014 at 6:17 pm 32748 | |
Nayem | Hello Tor B, The notice will appear on the store page. Here is a screenshot for the notice – Answer of your question – There are different rules for different plugin to override. So you have to confirm me which plugin you want to override in a child theme?. If you want to override Dokan plugin then you have to override this in a child theme. You have to make a folder in your child theme which must be named as “Dokan” and you have to copy the file which you want to customize and paste it to in your childtheme/dokan. Now you can do whatever you want with this file. Thank you 🙂 |
December 21, 2014 at 6:49 pm 32751 | |
Nayem | Hello Tor B, I am not sure but it can be caused for overriding. Please provide your login details by using this form- http://wedevs.com/provide-login-details/. I will have a look what is going wrong. Thank you 🙂 |