About vendor store

This topic contains 4 replies, has 3 voices, and was last updated by Avatar Molay Das 3 weeks ago.

  • Author
    Posts
  • #103346
    Avatar
    jorsenmejia
    Participant

    how can I get the “about” content on vendor page and put it on the shop page of his/her product

    Attachments:
    You must be logged in to view attached files.
  • #103393
    Avatar
    jorsenmejia
    Participant

    I tried this code

    function additional_information_callback() {
    global $WCFM, $WCFMmp;
    $store_user = wcfmmp_get_store( $vendor_id );
    $store_info = $store_user->get_shop_info();

    $gravatar = $store_user->get_avatar();
    $email = $store_user->get_email();
    $phone = $store_user->get_phone();
    $address = $store_user->get_address_string();
    $about = $store_user->get_shop_description();
    echo $about;
    }

    When I try to echo the email,
    If customer user logged in and check the product he sees his own email

  • #103495
    Avatar
    Molay Das
    Keymaster

    Hi,

    I think you are not getting the correct vendor id. I hope you are trying to get these values in product details page….right?
    If yes then please use the below code to get the vendor id:
    $vendor_id = wcfm_get_vendor_id_by_post( get_the_ID() );
    It will return the correct vendor id and by passing this id you will get the correct values as well.

    Hope this helps.

    Thanks,

  • #104829
    Avatar
    trapti agrawal
    Participant

    Could you please suggest the complete code to add, for the same. thanks.

  • #105191
    Avatar
    Molay Das
    Keymaster

    Hi @trapti agrawal,

    What complete code do you want?
    You can use the above code just be sure to get the vendor id correct.

    Thanks,

You must be logged in to reply to this topic.