• Resolved sammzand

    (@sammzand)


    1.We want store name should be clickable and should redirect to seller’s store page in product page seller info tab

    2.We do not want to show seller’s name in product page seller info tab

Viewing 1 replies (of 1 total)
  • themegurututorials

    (@themegurututorials)

    To make the store name clickable & remove the seller’s name, follow the instructions given below.

    1) Create a new directory named “dokan” inside the activated theme

    your-theme > dokan >

    2) Create another directory named “global” inside “dokan” directory

    your-theme > dokan > global

    3) Add the following code by creating a new file named “product-tab.php”

    <?php
    /**
     * Dokan Seller Single product tab Template
     *
     * @since 2.4
     *
     * @package dokan
     */
    ?>
    
    <h2><?php _e( 'Seller Information', 'dokan' ); ?></h2>
    
    <ul class="list-unstyled">
    
        <?php if ( !empty( $store_info['store_name'] ) ) { ?>
            <li class="store-name">
                <span><?php _e( 'Store Name:', 'dokan' ); ?></span>
                <span class="details">
                    <?php printf( '<a href="%s">%s</a>', dokan_get_store_url( $author->ID ), $store_info['store_name'] ); ?>
                </span>
            </li>
        <?php } ?>
        
        <?php if ( !empty( $store_info['address'] ) ) { ?>
            <li class="store-address">
                <span><b><?php _e( 'Address:', 'dokan' ); ?></b></span>
                <span class="details">
                    <?php echo dokan_get_seller_address( $author->ID ) ?>
                </span>
            </li>
        <?php } ?>
    
        <li class="clearfix">
            <?php dokan_get_readable_seller_rating( $author->ID ); ?>
        </li>
    </ul>
    

    Please check the product tab now, you can see the store name with the clickable link.

    Thank you

Viewing 1 replies (of 1 total)
  • The topic ‘edit store name in product page’ is closed to new replies.