How To Show Vendor Name On The Product Thumbnail In Dokan Multivendor Plugin by weDevs

Published by WP Doctor on

Every marketplace owner always looks for making their website more user-friendly. They want to save their customer’s time.

I am getting the below question from many users to add vendor name with Store URL on the product thumbnail:

Hi!

I want to display the vendor’s name alongside the Product name and price on the shop page (the thumbnails of products). Can you help?

How to add vendor name on the product thumbnail?

If you are using Dokan plugin and if You can easily add the vendor name with the Store URL on the product thumbnail by adding some custom codes in your child theme. On the thumbnail, it can be shown like below-

Now, if you click on the vendor name then it will redirect you to the vendor store page. If you are looking for the same thing then add the below code in your child theme’s functions.php file –

I believe the above code snippet will help you and if you need to modify anything then you can change it as per your requirement.

Note: If you need to show store name instead of vendor name then you can replace the line number 18 with this line-

<?php printf( 'Sold by: <a href="%s">%s</a>', $vendor->get_shop_url(), $vendor->get_shop_name() ); ?>

6 Comments

nellashub · July 28, 2018 at 7:07 pm

Thanks code works.
But does not display on mobile devices
Is there a way to make the SOLD BY tag show on mobile phone screens and other small screens?
https://nellashub.com

    Nayem · July 29, 2018 at 4:49 am

    Hello Nellashub,

    You may need to adjust some CSS to show it correctly on the mobile version. I have showed the correct way to do so rest need to be done from your side 🙂

Ali · November 14, 2018 at 1:59 pm

Hello Nayem,

Can I have your personal email address or contact details so I can contact you discuss something regarding Dokan plugin? There are many thing which needs to be discuss with you. I’ll be glad if your share your contact detail here or by email me at alihashmiqa@gmail.com

Thanks

    Nayem · November 16, 2018 at 5:05 am

    You can use the contact form of this website 🙂

Mohan Koirala · December 8, 2018 at 12:03 pm

Hello is it possible to add messenger link of each vendor by doing like that. i want to add messenger link as an instant support from vednor on each producd display or price display area. Thank you.

    Nayem · December 9, 2018 at 11:37 am

    Hello, It is possible but you have to modify in different way 🙂

Leave a Reply

%d bloggers like this: