PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, February 5, 2022

[FIXED] How do you remove/edit the Dokan Store Tabs

 February 05, 2022     dokan, php, wordpress     No comments   

Issue

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).


Solution

Managed to figure out how to do it.

In the dokan plugin folder navigate to the includes folder. Inside this folder there is a functions.php file.

Search for 'dokan_get_store_tabs('

Find and replace Products with text of your choice within this function.



Answered By - Curtis Harper Scott Young
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing