Totally Zenned
- Join Date:
- Sep 2008
- Location:
- Cleethorpes
- Posts:
- 1,230
- Plugin Contributions:
- 3
Custom Content Display
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 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 if ($_GET['cPath'] == 172) { ?>My Custom Content
<?php } elseif ($_GET['products_id'] == 9006) { ?>
My Product Custom Content<?php } ?>
But that doesn't work
Nick Smith - Venture Design and Print
https://venturedesignandprint.co.uk