How I came up with that code
If so you would want to do this:
$CategoryID = $_GET['CategoryID'];
And you would need to update all the links in PowerStore to add a Category ID.
If you could please explain a little more about how you are determining what is the Category ID that you are going to use, i should be able to help you.
Thanks, that makes sense to me... for the Category IDs, I just used the number that had been assigned to each of them in the database category table, which resulted in my code.
So I'm thinking from what you said that if I were to add the line you wrote $CategoryID = $_GET['CategoryID']; ... replacing the line I have that says Category = 1
it would probably work right off for a main product category page like Products_Results.php?Search=true&CategoryID=5
but as you suggest I'd need to modify a product specific page's URL like Products_Detail.php?ProductID=205... I'm not sure where exactly to put it in the path, though.
Maybe Products_Detail.php?CategoryID=5&ProductID=205 ? Might that work? Ah! I just popped that URL into the browser and it worked! Yay!
Thanks, I'll report back on that...
But, and this might be a sticky bit, as we also need to have the non-product pages (About, Support, Careers, etc.) show the image from the home page, and I'm not sure how to accomplish that, as they're not associated with a product category and the instructions are making it find categories... maybe there's the "else if" equivalent of a "null" or "none" for those pages?