I have a category which contains products inside sub categories.
Each product has some custom content at the bottom of the page. Every product has the same custom content, apart from one.
I am using this PHP to display the custom content:
PHP Code:
<?php if ($_GET['cPath'] == 172) { ?>My Custom Content<?php } ?>
This works fine, apart from it displays the wrong content on the product where it should be different content to the rest of the category.
How would I change this so that displays the right content? I was thinking target the product id rather than cPath
Something like:
PHP Code:
<?php if ($_GET['cPath'] == 172) { ?>My Custom Content
<?php } elseif ($_GET['products_id'] == 9006) { ?>
My Product Custom Content<?php } ?>
But that doesn't work
Bookmarks