• Resolved kiberchaka

    (@kiberchaka)


    Hi!
    How can I programmatically get admin percentage commission for a vendor by user id?
    I checked:

    $store_info = get_user_by( 'id', $author_id);
    $store_info = dokan_get_store_info($author_id);
    $store_info = get_user_meta($author_id);

    And there are no info about the percentage.

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter kiberchaka

    (@kiberchaka)

    I found out, that if I set individual admin commission for a vendor, I can get it like this:
    $individual_vendor_percentage = get_user_meta( $author_id, 'dokan_admin_percentage', true);
    But how to get the percentage, that was set globally?

    Thread Starter kiberchaka

    (@kiberchaka)

    I found the answer:

    dokan_get_option('admin_percentage', 'dokan_selling', 10);

    Hi there,

    I am sorry for the late response and glad to know that you have found the solution already. I am sure, someone else will be able to use this information in the future.

    Thank you ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How get admin percentage commission info for a user’ is closed to new replies.