Home Forums Theme Support Dokan Display feature Store information

This topic is: resolved

This topic contains 4 replies, has 2 voices, and was last updated by  Boris GAB 4 years, 4 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #33506

    Boris GAB
    Member
    Post count: 48

    Hello Nayem,

    I need a function like the one in the Feature store display widget witch can display on a page i will create

    the Feature store name, the Phone number, And the link to the shop of the store.

    Thanks for your assistance.

    #33532

    Nayem
    Moderator
    Post count: 6480

    Hello Boris,

    If you want to display this feature store widget in your page, you can drag this widget into your page. It is a default system to use widget in a page. But if you are looking for custom widget for your page then you have to do some customization. If you are good in code then you can customize your widget by your own hand other wise developer may required for this customization.

    Thank you for understanding ๐Ÿ™‚

    #33545

    Boris GAB
    Member
    Post count: 48

    Hello, thanks for the support.

    The widget display the Seller name of the feature seller, not the store name. I just want to display the store name with this widget please.

    Thanks.

    #33565

    Nayem
    Moderator
    Post count: 6480

    Hello Boris,

    Please open Dokan-plugin/includes/widgets/feature-seller.php and replace line number 47-58 with this code-

    foreach ($sellers as $key => $seller) {
                        $store_info = dokan_get_store_info( $seller->ID );
                        $rating = dokan_get_seller_rating( $seller->ID );
                        $display_rating = $rating['rating'];
    
                        if ( ! $rating['count'] ) {
                            $display_rating = __( 'No ratings found yet!', 'dokan' );
                        }
                        ?>
                        <li>
                            <a href="<?php echo dokan_get_store_url( $seller->ID ); ?>">
                                <?php echo $store_info['store_name']; ?>

    Please check and let me know. Thank you ๐Ÿ™‚

    #33586

    Boris GAB
    Member
    Post count: 48

    Good Nayem.
    Thanks for the support.

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Display feature Store information’ is closed to new replies.