• Resolved hamidrezayazdani

    (@hamidrezayazdani)


    Hi
    I installed wcmp but don’t added vendor user role. I was add below code:

    add_filter('woocommerce_login_redirect', 'redo_roles', 10, 2);
    function redo_roles() {
    		remove_role( 'pending_vendor' );
    		add_role( 'pending_vendor', __( 'فروشنده در انتظار تایید', 'wcvendors' ), array(
    			'read'         => true,
                            'edit_posts'   => false,
    			'delete_posts' => false
    			) );
    		remove_role( 'vendor' );
    		add_role( 'vendor', 'فروشنده', array(
    			'assign_product_terms'     => true,
    			'edit_products'            => true,
    			'edit_product'		   => true,
    			'edit_published_products'  => false,
    			'manage_product'           => true,
    			'publish_products'         => false,
    			'read'                     => true,
    			'upload_files'             => true,
    			'view_woocommerce_reports' => true,
    			) );
    }

    now vendor user role added but not show vendors list to assign them to products. Why?????!!!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • @hamidrezayazdani We have forwarded this to our development team. As soon as we will hear from them, will let you know.

    p.s. The response might get delayed as our office is closed due to Holidays and we will reopen on 2nd January 2018.

    As per your above codes, we can see that you have added non-WCMp user roles ( WCMp user roles are – ‘dc_vendor’, ‘dc_pending_vendor’, etc..). That’s why vendor list is not showing.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘vendors not shown’ is closed to new replies.