Home Forums Theme Support Dokan HIDE SELLER STORE DETAILS

This topic is: not resolved

This topic contains 7 replies, has 2 voices, and was last updated by  Nayem 3 years, 6 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #70772

    Brandon
    Member
    Post count: 30

    how can i hide all the seller details so that buyer couldnt contact them directly.
    like in their store page where all the details are reveal.

    #70890

    Nayem
    Moderator
    Post count: 6480

    Hello Brandon,

    Please open dokan/templates/store-header.php. In this file you will get this code-

    <?php if ( isset( $store_info['address'] ) && !empty( $store_info['address'] ) ) { ?>
                        <li class="dokan-store-address"><i class="fa fa-map-marker"></i>
                            <?php echo dokan_get_seller_address( $store_user->ID ); ?>
                        </li>
    <?php } ?>

    To remove address from the store you have to delete this code.

    Thakns.

    #71957

    Brandon
    Member
    Post count: 30

    ok i've been able to delete other info but left the social media that i dont know which code to delete.
    can you tell me.

    #72077

    Nayem
    Moderator
    Post count: 6480

    In the same page you will get those codes-

    <?php if ( $social_fields ) { ?>
                    <ul class="store-social">
                        <?php foreach( $social_fields as $key => $field ) { ?>
                            <?php if ( isset( $store_info['social'][ $key ] ) && !empty( $store_info['social'][ $key ] ) ) { ?>
                                <li>
                                    <a href="<?php echo esc_url( $store_info['social'][ $key ] ); ?>" target="_blank"><i class="fa fa-<?php echo $field['icon']; ?>"></i></a>
                                </li>
                            <?php } ?>
                        <?php } ?>
                    </ul>
    <?php } ?>

    Remove these codes.

    #72189

    Brandon
    Member
    Post count: 30

    how can i do it permanently as i notice once i upgrade to the latest version i need to do this again.
    and also how to hide the contact seller form?

    #72191

    Nayem
    Moderator
    Post count: 6480

    You have to create a folder in your child theme in this order dokan/templates then paste the store-header.php file in the templates folder. Now, you will be able to override the template file through your child theme.

    I am marking this topic as resolved.

    Thanks.

    #72201

    Brandon
    Member
    Post count: 30

    i've done so but i can't find the store-header.php file when i'm in appearance/editor. unless i copy the file directly under the child theme folder then i should be able to see.

    #72209

    Nayem
    Moderator
    Post count: 6480

    Template file will not show in the appearance->editor. So you have to work through FTP or cpanel.

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

The topic ‘HIDE SELLER STORE DETAILS’ is closed to new replies.