Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › Product Vendors › About vendor store
- This topic has 4 replies, 3 voices, and was last updated 4 years, 9 months ago by Ramamurthy Krishnan.
- AuthorPosts
- January 23, 2020 at 11:49 am #103346jorsenmejiaParticipant
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. - January 23, 2020 at 2:30 pm #103393jorsenmejiaParticipant
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 - January 24, 2020 at 12:35 am #103495Ramamurthy KrishnanKeymaster
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,
- January 31, 2020 at 11:10 pm #104829trapti agrawalParticipant
Could you please suggest the complete code to add, for the same. thanks.
- February 3, 2020 at 5:41 pm #105191Ramamurthy KrishnanKeymaster
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,
- AuthorPosts
- You must be logged in to reply to this topic.