Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WC Marketplace › Delete\Cancel orders from vendor dashboard
- This topic has 1 reply, 2 voices, and was last updated 4 years, 7 months ago by Sushobhan.
- AuthorPosts
- April 27, 2020 at 8:04 pm #123763beezleyParticipant
Can orders be cancelled or deleted from the vendors dashboard. Appears the status can only be marked as pending payment, on hold, processing or completed.
I see I can delete orders from the wordpress back-end dashboard, but would like the vendors to have this capability on their vendor dashboard.
- April 28, 2020 at 4:55 pm #124204SushobhanKeymaster
Hi,
Technically it’s possible if you have WCFM Ultimate. Though we highly encourage not to do that, as a single order contain items from more than one vendor. If any of the vendor deletes the order, that means the other vendor will also loose the sale.
But, if you only allow single vendors products in a order then you can enable this feature (Ultimate is required) by adding the following lines of code-add_filter( 'wcfm_is_allow_order_delete', '__return_true' ); add_filter( 'wcfm_is_allow_vendor_order_delete', '__return_true' );
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.