• Resolved niikk

    (@niikk)


    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

    • This topic was modified 3 years, 11 months ago by niikk.
    • This topic was modified 3 years, 11 months ago by niikk.
Viewing 1 replies (of 1 total)
  • Plugin Author Damian Góra

    (@damian-gora)

    Hello,

    Unfortunately, we aren’t integrated with the multi-vendors solution. Currently, we have basic integration with WC Marketplace, but this solution isn’t merged with official plugin code yet.

    Displaying the vendor’s name net to the product title is possible, but this task is for advanced PHP/MySQL developers because the search in the Pro plugin version works under special WordPress SHORTINIT mode. You have to retrieve the vendor name using SQL instead of using WordPress functions. Learn more here – https://ajaxsearch.pro/docs/tips-tricks/how-to-display-extra-text-in-search-suggestions/

    Best
    Damian

Viewing 1 replies (of 1 total)
  • The topic ‘Search for dokan vendor store page’ is closed to new replies.