Zen Follower
- Join Date:
- Feb 2009
- Posts:
- 125
- Plugin Contributions:
- 0
How do I completely disable the reviews?
Just what in the subject! :lookaroun
Views: 9,644
Zen Follower
Just what in the subject! :lookaroun
Totally Zenned
Admin
Catalog > Product type > Product General , Edit layout
turn off show products review button and show products review count .. ( set to 0 )
New Zenner
one tall man:
Just what in the subject! :lookaroun
To turn it off for everything, just disable the box that displays the option. Go to Tools->Layout Boxes Controller, click the Edit button on the reviews.php box and then make sure that the left/right column status is set to off.
New Zenner
Oh boy. This is the most recent post I have found concerning turning the "reviews" feature off.
I have already disabled reviews via:
Now how do I disable the "reviews" link from appearing in the site map???
Oba-san
Using your templates and overrides in the file tpl_site_map_default.php you need to remove or comment out the line:
<li><?php echo '<a href="' . zen_href_link(FILENAME_REVIEWS) . '">' . PAGE_REVIEWS . '</a>'; ?></li>
New Zenner
Ajeh - BINGO! That solved my issue. Now the hard part for me will be to remember that I made this change to supress the Reviews link from the site map. I hope I don't go crazy trying to undo this in the future.
Oba-san
If you made the change to your templates and overrides file, this will help a lot in the future ...
Granted a handy dandy NotePad file of I Changed This Stuff ... is always helpful ... :smile:
Thanks for the update that this worked for you to customize your site map ...:smile:
New Zenner
Ajeh:
Using your templates and overrides in the file tpl_site_map_default.php you need to remove or comment out the line: Can you just put a / in front of it to turn it off? Then remove it later if you want it back?
Oba-san
Commenting it out is the best method so that it is available for the future if you want to add it back ...
New Zenner
Ajeh:
Commenting it out is the best method so that it is available for the future if you want to add it back ... So that's a yes?
Oba-san
Yes, Commenting it out is the best method so that it is available for the future if you want to add it back ... :smile:
New Zenner
Ajeh:
Yes, Commenting it out is the best method so that it is available for the future if you want to add it back ... :smile: Thank you. I'm new to Zen Cart but not to site ownership. I am struggling with navigating and editing but I'm getting there slowly. I could use someone as a personal Zen Cart assistant right now :laugh: It's (store setup) not happening soon enough for me. Pretty frustrated.
Inactive
Using your templates and overrides in the file tpl_site_map_default.php you need to remove or comment out the line:
<li><?php echo '<a href="' . zen_href_link(FILENAME_REVIEWS) . '">' . PAGE_REVIEWS . '</a>'; ?></li>> **BigG-n-Tn:**Can you just put a / in front of it to turn it off? Then remove it later if you want it back?
In this case you would need to use HTML comment code.
<!-- li><?php echo '<a href="' . zen_href_link(FILENAME_REVIEWS) . '">' . PAGE_REVIEWS . '</a>'; ?></li -->Also, remember the commented line will show in a View Source. Not sure if that's important but some people forget that HTML comments still show.
And the suggestion of using a Change Log is an excellent one. As you customize things you are going to be making a lot of changes; sometimes to core files which are not part of the overrides system.
New Zenner
I found it easier just to go into the admin area and turn things on and off myself.
New Zenner
tony_sar:
Admin
Catalog > Product type > Product General , Edit layout
turn off show products review button and show products review count .. ( set to 0 )
Exactly what I was needing also, worked like a charm. Thanks!
Zen Follower
The post is old but i have similar issue.
I'm runing zc V1.51 not so hard coded.
I dont want to disable completely the reviews function, but only the /reviews and /review?reviews_id# page and to have the reviews of certain product under the product description. I saw a module for the second part, but no luck for removing thease two pages.
Any help woluld be good for me .
Many regards
Zen Follower
Or canonicals for /reviews and /reviews?reviews_id=# page pointing the product page as main.
Im using ceon URI Mappings.
Many regards.
Zen Follower
perfumbg:
Or canonicals for /reviews and /reviews?reviews_id=# page pointing the product page as main.
Im using ceon URI Mappings.
Many regards.
I managed it somehow if someone have this same issue, here is the solution.
you must find in yourTEMAPLATE/common/header_html.php
<?php // BEGIN CEON URI MAPPING 1 of 1 <?php } elseif (isset($canonicalLink) && $canonicalLink != '') { ?> <link rel="canonical" href="<?php echo $canonicalLink; ?>" /> <?php } // END CEON URI MAPPING 1 of 1 ?>and replase it with
<?php // BEGIN CEON URI MAPPING 1 of 1 if ($_GET["main_page"]=="product_reviews_info") { ?> <link rel="canonical" href="<?php echo zen_href_link(zen_get_info_page($_GET['products_id']), zen_get_all_get_params(array('reviews_id'))) ?>" /> <?php } elseif (isset($canonicalLink) && $canonicalLink != '') { ?> <link rel="canonical" href="<?php echo $canonicalLink; ?>" /> <?php } // END CEON URI MAPPING 1 of 1 ?>this works only if you have CEON URI MAPPING.
Many regards
Tell staff why this post should be reviewed.