Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @_eldar_,

    Thanks for reaching out. Can you please explain more about your problem ??

    Regards,
    Akshaya Swaroop

    Thread Starter _eldar_

    (@_eldar_)

    Hello!
    each user in DB has it’s unique ID number. I know vendor ID = 2, for example.

    For this vendor with ID = 2 I want to know:

    – vendor name
    – shop name
    – shop URL
    – vendor adress & ZIP code

    @_eldar_ – Use “get_wcmp_vendor” function to get your vendor details:

    $vendor = get_wcmp_vendor("Your Vendor ID");
    
    // For vendor user name
    echo $vendor->user_data->data->user_login;
    
    // For Shop name
    echo $vendor->user_data->data->display_name;
    
    // For shop url
    echo $vendor->permalink;
    
    // For vendor address Details
    echo $vendor->address_1;
    echo $vendor->address_2;
    echo $vendor->city;
    echo $vendor->state;
    echo $vendor->postcode;
    echo $vendor->country;

    Regards,
    Akshaya Swaroop

    Thread Starter _eldar_

    (@_eldar_)

    thank you!

    I am marking this thread as resolved. Please feel free to open a new thread in case you need any other help.

    Thanks
    Shan

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘vendor ID’ is closed to new replies.