Skip to content
Advertisement

Display dokan vendor name on Woocommerce single product pages

With woocommerce I am using Dokan plugin and I am trying to display the vendor name, rating and vendor location on single product pages.

I tried this code to display vendor name but no luck:

JavaScript

Any help is appreciated.

Advertisement

Answer

I don’t use dokan plugin. Here is the way to get the (post) author ID and to make your code work:

JavaScript

Code goes in function.php file of your active child theme (or active theme). This should work now.

But I don’t know how to get vendor rating and location. You should better ask Dokan support.

The code is based on this related thread.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement