Search for dokan vendor store page
-
Hello,
We want to use your plugin and want to use the PRO version. But first we have to check or confirm, some technical requirements.
1.) We are using Dokan Multivendor, It is possible with this Ajax Search Plug-in to search for vendor store page?
2.) Is it possible to add custom info in the search for the results? Example: We have a snipped (below) which displays the current vendor of a product. Is it possible to display this info next to the product name? And is it possible to search for that?
Link: https://ibb.co/9nHS4th
/* Show Store name on the product single page under product title */ add_action( 'woocommerce_single_product_summary','sold_by_store_name', 5 ); function sold_by_store_name(){ ?> </a> <?php global $product; $seller = get_post_field( 'post_author', $product->get_id()); $author = get_user_by( 'id', $seller ); $vendor = dokan()->vendor->get( $seller ); $store_info = dokan_get_store_info( $author->ID ); if ( !empty( $store_info['store_name'] ) ) { ?> <span class="SellerDetailsProductSinglePageLable"> <?php printf( '<a>%s</a>', $vendor->get_shop_name() ); ?> </span> <?php } }
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Search for dokan vendor store page’ is closed to new replies.