promita

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • in reply to: WCMP to MVX #189177
    promita
    Moderator

    Hi @2ki, We fixed the issue in your site. Please check.

    promita
    Moderator

    Hi @Justin Harrison, Sorry for the inconvenience. Actually, there was an issue with the overriding instruction. I have added the proper folder structure in your site, please check the modification now.

    in reply to: WCMP to MVX #187413
    promita
    Moderator

    @2ki, In order to remove those types you can override the shopfront.php file in your current active theme and remove line no 32 and 33.

    in reply to: MapBox in checkout #180716
    promita
    Moderator

    Hi a.dalcamo, to remove the mapbox from checkout page add this code in the functions.php of your current active theme.

    
    add_filter( 'mvx_is_allow_checkout_user_location', '__return_false' );
    
    Copy
    in reply to: Emails not sending to Admin and User when order is created. #180130
    promita
    Moderator

    Hi Jacinta Thomas, we show the wholesaler price using woocommerce filter.
    so you need to use ‘woocommerce_get_price_html’ filter to add your checking. For reference you may see this link https://sarathlal.com/display-product-price-for-logged-in-users-only-woocommerce/

    promita
    Moderator

    Hi l.gan, Yes this is the correct code to display the field in the storefront.

    promita
    Moderator
    This reply has been marked as private.
    promita
    Moderator

    Hi l.gan, you saved the data in post meta but you need to save this in user meta. You also need to use ‘mvx_save_custom_store’ hook for this.

    promita
    Moderator

    @l.gan, can you please confirm exactly where do you want to display the extra field?

    I have checked the storefront page the custom field is there.
    So, please do explain what further modification are you looking for so we can assist you accordingly.

    promita
    Moderator

    Hi @l.gan, thanks for your access. I have added the code in your code-snippets.
    Here is the code that I have added already.

    
    //Add a bulk action to Orders bulk actions dropdown
    add_filter('mvx_bulk_actions_vendor_order_list', 'mvx_add_bulk_options_vendor_order_list', 10, 2);
    function mvx_add_bulk_options_vendor_order_list( $list, $vendor ) {
    	$add_bulk = array(
    		'mark_delivery'   => __( 'Change status to delivery', 'multivendorx' ),
    		);
    	return array_merge( $list, $add_bulk );
    }
    
    Copy
    promita
    Moderator

    Happy to help @i.gan

    promita
    Moderator
    This reply has been marked as private.
    promita
    Moderator

    Hi James, use this code in your functions.php file.

    
    add_filter('mvx_datatable_order_list_table_headers', 'test_callback', 10, 2);
    function test_callback($orders_list_table_headers, $current_user_id) {
    	$orders_list_table_headers['billing_name'] = array('label' => __( 'Noms et Adresses', 'multivendorx' ));
    	$orders_list_table_headers['products'] = array('label' => __( 'Articles', 'multivendorx' ));
    	return $orders_list_table_headers;
    }
    add_filter('mvx_datatable_order_list_row', 'test_function', 10, 2);
    function test_function($vendor_rows, $order) {
    	$item_name = array();
    	foreach ($order->get_items() as $item_key => $item_values) {
    		$item_name[] = $item_values->get_name();
    	}
    	$vendor_rows['billing_name'] = $order->get_billing_first_name() . ' ' . $order->get_billing_last_name() .'</br></br><b>Ship To:</b></br>'. $order->get_formatted_shipping_address();
    	$vendor_rows['products'] = implode(" ", $item_name);
    	return $vendor_rows;
    }
    
    Copy

    Let us know if you have any further query.

    in reply to: Edit nav dashboard vendor #146611
    promita
    Moderator

    Hi luanne, In order to remove customer questions submenu from the vendor dashboard, you can add this code in functions.php of your child theme :

    
    //Delete customer questions submenu from Vendor Dashboard
    add_filter('mvx_vendor_dashboard_nav', 'callback_mvx_vendor_dashboard_nav', 99);
    function callback_mvx_vendor_dashboard_nav($vendor_nav){
    	unset($vendor_nav['store-settings']['submenu']['products-qna']); 
       return $vendor_nav;
    }
    
    Copy

    Let us know if you have any further query.

    in reply to: hide order status #146579
    promita
    Moderator

    Hi Klaus Thomas Russ, In order to hide those order status add this code in functions.php of your child theme :

    
    //hide order status from vendor dashboard
    add_filter('mvx_vendor_order_statuses','hide_status');
    function hide_status($status) {
    	unset($status['wc-on-hold']); //remove on-hold
    	unset($status['wc-failed']); //remove failed
    	unset($status['wc-checkout-draft']); //remove draft
    	return $status;
    }
    
    Copy

    Let us know if you have any further query.

Viewing 15 posts - 1 through 15 (of 19 total)