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:
<?php if ($_GET['main_page'] == "page_2") { ?> // This is where I hit a snag
BLAH BLAH BLAH
<? } else { ?>
BLAH BLAH BLAH
<? } ?>
Thanks a zillion for your help guys! ^_^
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:
<?php if ($_GET['main_page'] == "page_2") { ?> // This is where I hit a snag
BLAH BLAH BLAH
<? } else { ?>
BLAH BLAH BLAH
<? } ?>
Thanks a zillion for your help guys! ^_^