Up to 50 percent off

where is a tab in store's product page

This topic contains 5 reply and 2 voices, and was last updated by towhid 9 years, 5 months ago
Viewing 5 Posts - 1 through 5 (of 5 total)
Author Posts
June 9, 2015 at 1:07 pm 51537
towhid 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.
June 9, 2015 at 3:16 pm 51574
towhid towhid

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

Thanks

June 10, 2015 at 8:33 am 51641
Jintae Jintae

in products page : https://www.dropbox.com/s/ttoqpzs0p87gbpe/product%20no%20tab.png?dl=0

in reviews page : https://www.dropbox.com/s/de2ra5w3d81vuue/review%20tab.png?dl=0

June 10, 2015 at 1:27 pm 51664
towhid towhid

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

June 17, 2015 at 11:58 am 52225
Jintae Jintae

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

June 17, 2015 at 3:07 pm 52270
towhid towhid

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 5 Posts - 1 through 5 (of 5 total)