• Hi,

    How I can use this code for Customers’ data show only.

    https://prnt.sc/20zgukj

    Code:

    add_filter(‘wcfm_datatable_page_length’, ‘wcfm_custom_alter_datatable_count’);
    function wcfm_custom_alter_datatable_count() {
    return 150;
    }

    I want to use this for the customer’s section only because the bug is still the same it shows only 25 customers even I have 70+ Ticket #384061

    https://prnt.sc/20zh2ox

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author WC Lovers

    (@wclovers)

    Possibly you have only 25 customers with “Customer” user role.

    If you are getting this as vendor then definitely it will not show you all vendors.

    Thread Starter jlee2021

    (@jlee2021)

    the 25 customers are with resellers role I put the code that you guys give to me to update the customer’s role to other roles.

    Thread Starter jlee2021

    (@jlee2021)

    this code

    add_filter( 'wcfm_customer_user_role', function( $customer_user_roles ) {
    	$customer_user_roles[] = 'reseller_customer';
    	$customer_user_roles[] = 'cd_customer';
    	return $customer_user_roles;
    });
    Thread Starter jlee2021

    (@jlee2021)

    https://prnt.sc/213dott

    there are no customers, they have resellers and store vendor role.
    https://prnt.sc/213dpwn

    Thread Starter jlee2021

    (@jlee2021)

    is this possible to use?

    add_filter( 'wcfm_customer_user_role', function( $customer_user_roles ) {
    	$customer_user_roles[] = 'reseller_customer';
    	$customer_user_roles[] = 'cd_customer';
        $customer_user_roles[] = 'wcfm_vendor';
    	return $customer_user_roles;
    });
    Plugin Author WC Lovers

    (@wclovers)

    Yes, this will work.

    Thread Starter jlee2021

    (@jlee2021)

    but it shows only 25 data how to fix it?

    https://prnt.sc/213fhnv

    i use this code

    add_filter( 'wcfm_customer_user_role', function( $customer_user_roles ) {
    	$customer_user_roles[] = 'reseller_customer';
    	$customer_user_roles[] = 'cd_customer';
        $customer_user_roles[] = 'wcfm_vendor';
    	return $customer_user_roles;
    });

    it shows 25 only! those users have reseller_customer role and wcfm vendor role
    https://prnt.sc/213fipq

    Plugin Author WC Lovers

    (@wclovers)

    DO you have more customers with orders for this vendor?

    What are you getting as Admin?

    Thread Starter jlee2021

    (@jlee2021)

    I removed all the codes and start FRESH! its still the same it shows only 25 customers

    Thread Starter jlee2021

    (@jlee2021)

    I got 2 pages in admin dashboard
    https://prnt.sc/213gqu0

    Plugin Author WC Lovers

    (@wclovers)

    https://prnt.sc/213gqu0

    Great, so there has no issues. Vendors are not allowed to see all customers, they only allowed to see those customers who already ordered from their store.

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

The topic ‘Customers Data Lenght’ is closed to new replies.