Vendor order cancellation from unavailability
-
Hello everyone,
We’ve been using WCFM to launch a local food delivery service. Vendors won’t keep inventory, as normaly they can always preprare the meal. But occasionnaly they may need to cancel the order for unavailability.
I asked WCFM premium support to allow vendor cancellation from front end. I got this snippet of code to add:
add_filter( 'wcfm_allowed_order_status', function( $status, $order_id ) { if( !isset( $status['wc-cancelled'] ) ) { $status['wc-cancelled'] = 'Cancelled'; } return $status; }, 50, 2 );It does the cancellation BUT:
-It is completely ignored as an email trigger (none of the cancelled order emails set up from woocommerce are sent when vendor cancels)
-It does not update the order status on WCFM Vendor APP
-The cancelling capacity does not appear on Vendor APP.I’ve already asked WCFM by email, but if someone see this and has a code suggestion please please help, we’re supposed to launch this week 🙁
Side note: I tried to post this on the WCFM forum but the craziest thing just happens with the site login. When I click Log in, it says I already am, when I go on the forum to post, it says you need to login. It drove me mad.
Thank you.
The topic ‘Vendor order cancellation from unavailability’ is closed to new replies.