captainmitch
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Please restore Bookings 1.12 partially booked viewPlease do not close. This is not a request for support. I already spent a long time on support for this and the rest of a day after trying every way possible to get it running. I’ve since also tried installing that .css in my child theme’s header file. BUT – THAT IS NOT WHAT THIS POST IS ABOUT.
AUTOMATIC made a bad product roadmap decision. The social proof and urgency created by that triangle are undeniable. Please add them back ASAP so that a work-around is not needed.
Forum: Plugins
In reply to: [WooCommerce] Product Vendors Roles and CapabilitiesActually, I opened a ticket same day I posted here. They were kind enough to point me to another thread on stack overflow that suggested this:
add_filter('woocommerce_product_data_tabs', 'verdors_remove_tab', 98, 1); function verdors_remove_tab($tabs){ // Set HERE your targeted user role SLUG $target_user_role = 'wc_product_vendors_manager_vendor'; // Get current user (object) $current_user = wp_get_current_user(); $current_user_roles = $current_user->roles; // current user roles //echo "<H1>TESTING - TESTING</H1><br>"; //print_r($current_user_roles); // Unsetting tabs for this specific user role if( in_array( $target_user_role, $current_user_roles ) ){ //echo "<H1>THE IF CONDITION WAS MET</H1>"; //unset($tabs['general']); // it is to remove inventory tab //unset($tabs['advanced']); // it is to remove advanced tab //unset($tabs['linked_product']); // it is to remove linked_product tab //unset($tabs['attribute']); // it is to remove attribute tab //unset($tabs['variations']); // it is to remove variations tab unset($tabs['bookings_pricing']); // it is to remove costs tab unset($tabs['bookings_persons']); // it is to remove persons tab unset($tabs['bookings_resources']); // it is to remove resources tab unset($tabs['wc_deposits']); // it is to remove the deposits tab } return($tabs); }
This does what I originally wanted in hiding the cost related tabs from the vendors with whom I have wholesale pricing agreements.
Unfortunately, I have been unable to get the deposits tab to hide. I thought it was a priority thing, but I’ve raised the priority to 200 and still the wc-deposits tab persists.
Forum: Plugins
In reply to: [MultiSite Clone Duplicator] Product resources does not work for copied siteDid you get any more information on this? I read somewhere that Woocommerce Bookings is not multisite compatible and does not appropriately clone the necessary tables.