Home Forums WC Vendors Free Support Vendor approve their own booking product Reply To: Vendor approve their own booking product

Brylle John

Hi Ben,
Yeah i already did that Ben 🙂 – To allow vendors to publish their own products

I just change the default settings of the product type from simple to booking.

* WC_Meta_Box_Product_Data Class
class WC_Meta_Box_Product_Data {

* Output the metabox
public static function output( $post ) {
global $post, $thepostid;

wp_nonce_field( ‘woocommerce_save_data’, ‘woocommerce_meta_nonce’ );

$thepostid = $post->ID;

if ( $terms = wp_get_object_terms( $post->ID, ‘product_type’ ) ) {
$product_type = sanitize_title( current( $terms )->name );
} else {
$product_type = apply_filters( ‘default_product_type’, ‘booking’ ); <—– this line Ben hope it helps to other developers

$product_type_selector = apply_filters( ‘product_type_selector’, array(
‘simple’ => __( ‘Simple product’, ‘woocommerce’ ),
‘grouped’ => __( ‘Grouped product’, ‘woocommerce’ ),
‘external’ => __( ‘External/Affiliate product’, ‘woocommerce’ ),
‘variable’ => __( ‘Variable product’, ‘woocommerce’ )
), $product_type );

Hope you will add support to wc booking to wc vendors free plugin Ben 🙂
Like the vendors can approve their booking order and if the customer request check availability of the product it sends notification to the owner/vendor etc.



This website uses cookies to ensure you get the best experience on our website.