Home Forums Theme Support Dokan Remove Reviews and Ratings

This topic is: not resolved

This topic contains 4 replies, has 2 voices, and was last updated by  towhid 4 years ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #42947

    Paul
    Member
    Post count: 24

    Hi

    I have removed the reviews tab from the dashboard with

    function dokan_remove_coupon_menu( $menus ) {
        unset($menus['reviews']);
         
        return $menus;
    }
     
    add_filter( 'dokan_get_dashboard_nav', 'dokan_remove_coupon_menu' );

    What is the best way to also remove:
    reviews panel from the Dashboard home Page
    ratings that shows on the seller banner profile details
    ratings that shows on the seller info tab on the product page
    ability to enable reviews in the Product Options tab

    Thanks

    #42956

    Paul
    Member
    Post count: 24

    And also from the drop down Seller Dashboard menu in top bar

    #42980

    towhid
    Participant
    Post count: 4505

    Hello Paul,

    #Reviews panel from the Dashboard home Page:

    Step 1: Please open wedevs-dokan-plugin/templates/dashboard.php

    Step 2: Find and comment out below line:

    <div class="dashboard-widget reviews">
                        <div class="widget-title"><i class="fa fa-comments"></i> <?php _e( 'Reviews', 'dokan' ); ?></div>
    
                        <ul class="list-unstyled list-count">
                            <li>
                                <a href="<?php echo $reviews_url; ?>">
                                    <span class="title"><?php _e( 'All', 'dokan' ); ?></span> <span class="count"><?php echo $comment_counts->total; ?></span>
                                </a>
                            </li>
                            <li>
                                <a href="<?php echo add_query_arg( array( 'comment_status' => 'hold' ), $reviews_url ); ?>">
                                    <span class="title"><?php _e( 'Pending', 'dokan' ); ?></span> <span class="count"><?php echo $comment_counts->moderated; ?></span>
                                </a>
                            </li>
                            <li>
                                <a href="<?php echo add_query_arg( array( 'comment_status' => 'spam' ), $reviews_url ); ?>">
                                    <span class="title"><?php _e( 'Spam', 'dokan' ); ?></span> <span class="count"><?php echo $comment_counts->spam; ?></span>
                                </a>
                            </li>
                            <li>
                                <a href="<?php echo add_query_arg( array( 'comment_status' => 'trash' ), $reviews_url ); ?>">
                                    <span class="title"><?php _e( 'Trash', 'dokan' ); ?></span> <span class="count"><?php echo $comment_counts->trash; ?></span>
                                </a>
                            </li>
                        </ul>
                    </div> <!-- .reviews -->

    # Ratings that shows on the seller banner profile details:

    Step 1: Please open wedevs-dokan-plugin/templates/store-header.php
    Step 2: Find and comment out below line:

    <li>
                        <i class="fa fa-star"></i>
                        <?php dokan_get_readable_seller_rating( $store_user->ID ); ?>
                    </li>

    #Ratings that shows on the seller info tab on the product page:

    Please open your theme's functions.php file and paste this code at bottom:
    remove_filter( 'woocommerce_product_tabs', 'dokan_seller_product_tab' );

    #Ability to enable reviews in the Product Options tab:

    I can see enable reviews in the Product Options tab. Please check this screenshot through this link – http://postimg.org/image/bqjha1ucz/

    #Drop down Seller Dashboard menu in top bar:
    Step 1: Please open themes/wedevs-dokan/header.php
    Step 2: Find and comment out below line:
    dokan_header_user_menu();

    Thank you ๐Ÿ™‚

    #42985

    Paul
    Member
    Post count: 24

    Thanks – a couple of misunderstandings….

    ok – #Reviews panel from the Dashboard home Page: – yes worked as instructed

    ok – #Ratings that shows on the seller banner profile details: Actually this code is in themes/dokan/dokan/store.php – yes commented out here

    #Ratings that shows on the seller info tab on the product page: – I don't want to remove the whole tab – just the rating line – where is this code?

    #Ability to enable reviews in the Product Options tab: – I want to remove that whole line – where

    #Drop down Seller Dashboard menu in top bar: – Don't want to remove whole menu – just the reviews item – where?

    Thanks for help so far….

    Will the changes to the plugin code be overwritten on next upgrade?

    #43004

    towhid
    Participant
    Post count: 4505

    Hello Paul,

    Can you please provide me screenshots of your each requirement. Then it will be easy for me to give you proper code.

    Thank you ๐Ÿ™‚

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

The topic ‘Remove Reviews and Ratings’ is closed to new replies.