Perhaps a little background info. What I need to achieve is:
if (Hompage)
show sidebox 1
else
show sidebox 2
I looked thru' v1.3.5 and found this code:
$this_is_home_page = ($current_page=='index.php' && !isset($_GET['cPath']));
It's working somewhat to what I need. By that I mean when the Homepage is displayed, sidebox 1 is shown. When any category is clicked, sidebox 2 is switched to. However, when i click on a product which causes the URL to changed from
https://www.mywebsite.com
to
http://www.mywebsite.com/index.php?main_page=product_info&products_id=962
the code failed to switch to sidebox 2.
I believe the condition in my IF statement is incomplete. Could anyone point out what I am missing? Thanks very much.