Thread Starter
martyn
(@marty2010)
If you have a function is better, mine doesn’t work at all.
Hi,
There is no such function to get vendor description.
using below code you can get the vendor description
$vendor_id = 2;
$vendor =get_wcmp_vendor($vendor_id);
if($vendor)
echo $vendor->description;
You can use this as per your requirement.
-
This reply was modified 5 years, 2 months ago by
abhirup23.
Thread Starter
martyn
(@marty2010)
Thank you, it works.
Can you tell me how to get all vendors id and not only for vendor id 2?
ref. $vendor_id = 2;
Thread Starter
martyn
(@marty2010)
I wanna say how to include all vendors instead only one, > $vendor_id = 2;
Hi,
Can you please tell me where do you want to add the data with a screenshot.
You can get the all vendors using below function.
get_wcmp_vendors()
Let me know if you need any help.
Regards,
Thread Starter
martyn
(@marty2010)
Hi,
Thanks for the image. But it would have been much helpful, if you can share the screenshot of the page where you want to display that.
Thank you.
Thread Starter
martyn
(@marty2010)
This is an example, > https://bit.ly/3s30fMp
I need to do that for every vendors, after the <title></title>.
Many thank’s
@marty2010, we are getting this error “Error 1020”.
Thread Starter
martyn
(@marty2010)
Sorry, I have disabled GeoIp firewall just now, can you try again please?
Thread Starter
martyn
(@marty2010)
Hi, Were you able to log in?
Hi @marty2010, thanks for the link.
But this is your vendor shop page. May I know where do you want to show the field in this page?
Thread Starter
martyn
(@marty2010)
Hi,
I don’t want to show that field in the page, how to display the store description_data (<div class=”description_data”>) automatically inside the <meta description=””> for every vendor. The vendor meta description is for SEO, now is empty.
Hi @marty2010, thanks for the clarification.
We Presume you want to fetch the vendor’s description for SEO purpose. In that case, you can get that vendor_id from their shop page and from this id, you can get the description.
Thread Starter
martyn
(@marty2010)
hi,
thank you, of course, I was just looking for a function that includes all vendors together, without getting the single vendor id.