Quote Originally Posted by DrByte View Post
Actually, I take part of that back. I'd recommend just adding the following to the bottom of your init_category_path.php file:
Code:
// set noindex, nofollow on linked products
if ($current_category_id > 0 && $current_category_id != zen_get_products_category_id($_GET['products_id']) ) $robotsNoIndex = TRUE;
(replacing the line with just ?> on it, if it exists, or just adding to the end of the file if the ?> doesn't exist.)
https://www.zen-cart.com/tutorials/i...hp?article=313
DrByte,

Thanks I almost got this working I think, however your suggestion seems to have 2 issues I can see so far (assuming I followed your instructions correctly?)

the noindex seemed to be included in the product in the master category and not on the linked the opposite to the desired effect,

also after adding it i noticed its adding the noindex to tag to the category pages too :o(

here is what I did, perhaps you might point out if I have done it wrong?

so the edit to init_category_path.php file looks like this:

Code:
if ($current_category_id > 0 && $current_category_id != zen_get_products_category_id($_GET['products_id']) ) $robotsNoIndex = TRUE;
I also tried without the closing ?> tag, same result