Home Forums Theme Support Dokan where is a tab in store's product page

This topic is: not resolved

Tagged: 

This topic contains 5 replies, has 2 voices, and was last updated by  towhid 3 years, 11 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #51537

    Jintae
    Member
    Post count: 36


    in Products page


    in Reviews page

    This tab ( Products / Reviews ) is only output from the review page in store page.
    where is a tab in store's product page.
    please ask for a quick fix.

    #51574

    towhid
    Participant
    Post count: 4505

    I can not see any screenshot. Can you please try once again to upload those images.

    Thanks

    #51641

    Jintae
    Member
    Post count: 36
    #51664

    towhid
    Participant
    Post count: 4505

    Hello Jintae,

    I have tried to reproduce this issue but failed. If the issue still persists then check for your theme or plugin conflicts. You can disable all your plugins except Dokan and switch to a default theme of WordPress like – Twenty Twelve, Twenty Thirteen, Twenty Fourteen and let me know the results.

    Thanks

    #52225

    Jintae
    Member
    Post count: 36

    Hi towhid

    first i am using Dokan ver 2.2.2 (this is latest versoin…is it right?)
    you told me “I have tried to reproduce this issue but failed”
    so I opened directly related to the source code.
    and then i made sure that it goes wrong.

    piz check Source below.
    1. wp-content\themes\dokan\dokan\store.php

    
    <?php dokan_get_template_part( 'store-header' ); ?>
    
    

    there is code relating tab in store-header.php

    2. wp-content\themes\dokan\dokan\store-reviews.php

    
    <div id="primary" class="content-area dokan-single-store col-md-9">
        <div id="content" class="site-content store-page-wrap woocommerce" role="main">
    
            <div class="profile-frame">
    
                <?php if ( isset( $store_info['banner'] ) && !empty( $store_info['banner'] ) ) { ?>
                <style type="text/css">
                    .profile-frame {
                        background-image: url('<?php echo wp_get_attachment_url( $store_info['banner'] ); ?>');
                    }
                </style>
                <?php } ?>
    
                <div class="col-md-4 profile-info-box">
                    <div class="profile-img">
                        <?php echo get_avatar( $store_user->ID, 80 ); ?>
                    </div>
    
                    <div class="profile-info">
                        <ul class="list-unstyled">
    
                            <?php if ( isset( $store_info['store_name'] ) ) { ?>
                                <li class="store-name"><?php echo esc_html( $store_info['store_name'] ); ?></li>
                            <?php } ?>
    
                            <?php if ( isset( $store_info['address'] ) && !empty( $store_info['address'] ) ) { ?>
                                <li><i class="fa fa-map-marker"></i> <?php echo esc_html( $store_info['address'] ); ?></li>
                            <?php } ?>
    
                            <?php if ( isset( $store_info['phone'] ) && !empty( $store_info['phone'] ) ) { ?>
                                <li><i class="fa fa-mobile"></i>
                                    <a href="tel:<?php echo esc_html( $store_info['phone'] ); ?>"><?php echo esc_html( $store_info['phone'] ); ?></a>
                                </li>
                            <?php } ?>
    
                            <?php if ( isset( $store_info['show_email'] ) && $store_info['show_email'] == 'yes' ) { ?>
                                <li><i class="fa fa-envelope-o"></i>
                                    <a href="mailto:<?php echo antispambot( $store_user->user_email ); ?>"><?php echo antispambot( $store_user->user_email ); ?></a>
                                </li>
                            <?php } ?>
    
                            <li>
                                <i class="fa fa-star"></i>
                                <?php dokan_get_readable_seller_rating( $store_user->ID ); ?>
                            </li>
                        </ul>
    
                        <ul class="list-inline store-social">
                            <?php if ( isset( $store_info['social']['fb'] ) && !empty( $store_info['social']['fb'] ) ) { ?>
                                <li>
                                    <a href="<?php echo esc_url( $store_info['social']['fb'] ); ?>" target="_blank"><i class="fa fa-facebook-square"></i></a>
                                </li>
                            <?php } ?>
    
                            <?php if ( isset( $store_info['social']['gplus'] ) && !empty( $store_info['social']['gplus'] ) ) { ?>
                                <li>
                                    <a href="<?php echo esc_url( $store_info['social']['gplus'] ); ?>" target="_blank"><i class="fa fa-google-plus-square"></i></a>
                                </li>
                            <?php } ?>
    
                            <?php if ( isset( $store_info['social']['twitter'] ) && !empty( $store_info['social']['twitter'] ) ) { ?>
                                <li>
                                    <a href="<?php echo esc_url( $store_info['social']['twitter'] ); ?>" target="_blank"><i class="fa fa-twitter-square"></i></a>
                                </li>
                            <?php } ?>
    
                            <?php if ( isset( $store_info['social']['linkedin'] ) && !empty( $store_info['social']['linkedin'] ) ) { ?>
                                <li>
                                    <a href="<?php echo esc_url( $store_info['social']['linkedin'] ); ?>" target="_blank"><i class="fa fa-linkedin-square"></i></a>
                                </li>
                            <?php } ?>
    
                            <?php if ( isset( $store_info['social']['youtube'] ) && !empty( $store_info['social']['youtube'] ) ) { ?>
                                <li>
                                    <a href="<?php echo esc_url( $store_info['social']['youtube'] ); ?>" target="_blank"><i class="fa fa-youtube-square"></i></a>
                                </li>
                            <?php } ?>
    
                            <?php if ( isset( $store_info['social']['flickr'] ) && !empty( $store_info['social']['flickr'] ) ) { ?>
                                <li>
                                    <a href="<?php echo esc_url( $store_info['social']['flickr'] ); ?>" target="_blank"><i class="fa fa-flickr"></i></a>
                                </li>
                            <?php } ?>
    
                            <?php if ( isset( $store_info['social']['instagram'] ) && !empty( $store_info['social']['instagram'] ) ) { ?>
                                <li>
                                    <a href="<?php echo esc_url( $store_info['social']['instagram'] ); ?>" target="_blank"><i class="fa fa-instagram"></i></a>
                                </li>
                            <?php } ?>
    
                        </ul>
                    </div> <!-- .profile-info -->
                </div> <!-- .profile-info-box -->
            </div> <!-- .profile-frame -->
    

    there is not code relating tab

    Do you think I'm wrong about that?
    Piz Look out once again
    I can fix it myself. but I hope that you guys fix this.
    because I Consider a version update to be released next
    i expect a quick reply

    #52270

    towhid
    Participant
    Post count: 4505

    Hello Jintae,

    Please replace the previous code with this new code.

    <?php
    $store_user    = get_userdata( get_query_var( 'author' ) );
    $store_info    = dokan_get_store_info( $store_user->ID );
    $store_tabs    = dokan_get_store_tabs( $store_user->ID );
    $social_fields = dokan_get_social_profile_fields();
    ?>
    <div class="profile-frame">
    
        <?php if ( isset( $store_info['banner'] ) && !empty( $store_info['banner'] ) ) { ?>
        <style type="text/css">
            .profile-frame {
                background-image: url('<?php echo wp_get_attachment_url( $store_info['banner'] ); ?>');
            }
        </style>
        <?php } ?>
    
        <div class="profile-info-box">
            <div class="profile-img">
                <?php echo get_avatar( $store_user->ID, 80 ); ?>
            </div>
    
            <div class="profile-info">
                <ul class="dokan-store-info">
    
                    <?php if ( isset( $store_info['store_name'] ) ) { ?>
                        <li class="store-name"><?php echo esc_html( $store_info['store_name'] ); ?></li>
                    <?php } ?>
                    <?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 } ?>
    
                    <?php if ( isset( $store_info['phone'] ) && !empty( $store_info['phone'] ) ) { ?>
                        <li class="dokan-store-phone">
                            <i class="fa fa-mobile"></i>
                            <a href="tel:<?php echo esc_html( $store_info['phone'] ); ?>"><?php echo esc_html( $store_info['phone'] ); ?></a>
                        </li>
                    <?php } ?>
    
                    <?php if ( isset( $store_info['show_email'] ) && $store_info['show_email'] == 'yes' ) { ?>
                        <li class="dokan-store-email">
                            <i class="fa fa-envelope-o"></i>
                            <a href="mailto:<?php echo antispambot( $store_user->user_email ); ?>"><?php echo antispambot( $store_user->user_email ); ?></a>
                        </li>
                    <?php } ?>
    
                    <li>
                        <i class="fa fa-star"></i>
                        <?php dokan_get_readable_seller_rating( $store_user->ID ); ?>
                    </li>
                </ul>
    
                <?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 } ?>
            </div> <!-- .profile-info -->
        </div> <!-- .profile-info-box -->
    
        <?php if ( $store_tabs ) { ?>
            <div class="dokan-store-tabs">
                <ul class="dokan-list-inline">
                    <?php foreach( $store_tabs as $key => $tab ) { ?>
                        <li><a href="<?php echo esc_url( $tab['url'] ); ?>"><?php echo $tab['title']; ?></a></li>
                    <?php } ?>
                </ul>
            </div>
        <?php } ?>
    </div> <!-- .profile-frame -->

    Thanks

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

The topic ‘where is a tab in store's product page’ is closed to new replies.