Home Forums WC Vendors Pro Support change sold by name and link. Reply To: change sold by name and link.

#11638
Jamie
Keymaster

Hello,

Are you just trying to change the “Sold By” text to be the username instead of the store id and the URL to go to their buddypress profile instead of their store?

Firstly change the following in the backend :

WooCommerce > WC Vendors > General
Vendor Display Name: User Login

To change the link to go to the buddypress profile use the following code in your themes function.

https://gist.github.com/digitalchild/badabf867eaff01a9fb0

Just a side note, while writing this and testing it I noticed that there was a duplicate filter name in the source code so this will only work in the loop page until next release, unless you feel like editing the source code to fix the typo.

If you do you would need to change line 611 in public/class-wcvendors-pro-store-controller.php

change wcv_loop_sold_by to wcv_product_sold_by

cheers,

Jamie.