Remove Reviews and Ratings

This topic contains 4 reply and 2 voices, and was last updated by towhid 8 years, 11 months ago
Viewing 4 Posts - 1 through 4 (of 4 total)
Author Posts
May 3, 2015 at 7:19 am 42947
towhid 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
May 3, 2015 at 4:24 pm 42956
Paul Paul

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

May 4, 2015 at 12:33 pm 42980
towhid towhid

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 🙂

May 4, 2015 at 1:37 pm 42985
Paul Paul

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?

May 4, 2015 at 5:42 pm 43004
towhid towhid

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