Ok, so it's about some simple php, but I'm not the best at that. ;-)
So, say I have two html blocks, block#1 and block#2. In my catalog, I have only 2 categories. On my page, I want block#1 to show up only if the visitor is viewing category#1 of my catalog. Otherwise, he's viewing category#2 and then, I want block#2 to show up.
I want to use an "if statement" that would do just that, but don't know how to check which category is being viewed.
Below is an example of what I'm looking to achieve:
Thanks a zillion for your help guys!PHP Code:<?php if ($_GET['main_page'] == "page_2") { ?> // This is the part I need to adapt
//some HTML here
<? } else { ?>
//some HTML here
<? } ?>
PS: I can't post a url to my website yet coz it's local for now. Sorry![]()




