Yes, Commenting it out is the best method so that it is available for the future if you want to add it back ...
Yes, Commenting it out is the best method so that it is available for the future if you want to add it back ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
In this case you would need to use HTML comment code.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>
<!-- 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.
I found it easier just to go into the admin area and turn things on and off myself.
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
My most recent work: magprom.net
Or canonicals for /reviews and /reviews?reviews_id=# page pointing the product page as main.
Im using ceon URI Mappings.
Many regards.
My most recent work: magprom.net
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
My most recent work: magprom.net
Bookmarks