• Resolved katanga1987

    (@katanga1987)


    I am using Dokan for a listings site. The core set of products that will be used are bookable products.

    As such I want to rename the products field to ‘Bookings’. I have digging around in the plugin template files and can find where the tabs are included in the store template but can’t seem to find where the actual tabs are defined.

    Any help would be awesome thanks. For reference below the code where the tabs are being included:

    
        <?php if ( $store_tabs ) { ?>
    <div class="dokan-store-tabs<?php echo $no_banner_class_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 } ?>
            <?php do_action( 'dokan_after_store_tabs', $store_user->get_id() ); ?>
        </ul>
    </div>
    

    I am also having an issue with the reviews page (I removed the sidebars from store.php and store-review.php in child theme folder) and reviews page now just loads header and footer of my theme).

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @katanga1987,

    we have a filter to customize tabs as per your need.

    apply_filters( 'dokan_store_tabs', $tabs, $store_id );

    You can use this to filter $store_tabs array and customize it’s values as you need.

    For the reviews page you may be incorrectly placed the divs or some error might be occuring. You use CSS to hide the sidebars or just contact our support and they would be happy to help you out on this.

    Thanks

    Thread Starter katanga1987

    (@katanga1987)

    Compliments of the new year and thanks for the guidance.

    Could you perhaps provide code example of editing ‘Products’ to ‘Bookings’ and hiding ‘Reviews’ tab completely using apply_filters?

    Thanks!

    Hello @katanga1987,

    We are unable to share the entire code through support. We have provided the specific filter and location. Now, you may need to do the code as you want. As per our support policy, we can only provide support for default functionality issue/bug fixing.

    Thank you.

    Thread Starter katanga1987

    (@katanga1987)

    No problem – figured it out.

    Thanks for the guidance.

    Hi katanga1987 – can you please share the changes made?

    By the way, I’m trying to add the “Post” tab by displaying all the posts posted by the vendor.

    Thanks in advance,
    yeeloon

    Hello @yeeloon,

    This ticket has been resolved. So, it’s better to create a new ticket.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How do you remove/edit the Dokan Store Tabs’ is closed to new replies.